Module Name: src Committed By: jmcneill Date: Sat Aug 26 22:31:02 UTC 2017
Modified Files: src/sys/dev/i2c: tcakp.c Log Message: wscons is not mpsafe, so take kernel lock for intr handler To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/tcakp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/i2c/tcakp.c diff -u src/sys/dev/i2c/tcakp.c:1.1 src/sys/dev/i2c/tcakp.c:1.2 --- src/sys/dev/i2c/tcakp.c:1.1 Sat Aug 26 21:02:35 2017 +++ src/sys/dev/i2c/tcakp.c Sat Aug 26 22:31:02 2017 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ tcakp_attach(device_t parent, device_t s 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