Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c wscons is not mpsafe, so take kernel lock for in...



details:   https://anonhg.NetBSD.org/src/rev/5b7a08f7f0d5
branches:  trunk
changeset: 826292:5b7a08f7f0d5
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Aug 26 22:31:02 2017 +0000

description:
wscons is not mpsafe, so take kernel lock for intr handler

diffstat:

 sys/dev/i2c/tcakp.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 49da844b89ce -r 5b7a08f7f0d5 sys/dev/i2c/tcakp.c
--- a/sys/dev/i2c/tcakp.c       Sat Aug 26 22:24:50 2017 +0000
+++ b/sys/dev/i2c/tcakp.c       Sat Aug 26 22:31:02 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcakp.c,v 1.1 2017/08/26 21:02:35 jmcneill Exp $ */
+/* $NetBSD: tcakp.c,v 1.2 2017/08/26 22:31:02 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_fdt.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcakp.c,v 1.1 2017/08/26 21:02:35 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcakp.c,v 1.2 2017/08/26 22:31:02 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -348,8 +348,8 @@
        aprint_normal(": TCA8418\n");
 
 #ifdef FDT
-       sc->sc_ih = fdtbus_intr_establish(sc->sc_phandle, 0, IPL_VM,
-           FDT_INTR_MPSAFE, tcakp_intr, sc);
+       sc->sc_ih = fdtbus_intr_establish(sc->sc_phandle, 0, IPL_VM, 0,
+           tcakp_intr, sc);
 
        tcakp_configure_fdt(sc);
 #endif



Home | Main Index | Thread Index | Old Index