Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/allwinner Mark comintr as MP safe; otherwise a ...



details:   https://anonhg.NetBSD.org/src/rev/2cf65703a6f3
branches:  trunk
changeset: 333318:2cf65703a6f3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Oct 29 10:47:46 2014 +0000

description:
Mark comintr as MP safe; otherwise a MULTIPROCESSOR kernel will try to
take the kernel_lock which breaks the locking protocol (should only be
taken at IPL_VM)

diffstat:

 sys/arch/arm/allwinner/awin_com.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 7c4861f85e10 -r 2cf65703a6f3 sys/arch/arm/allwinner/awin_com.c
--- a/sys/arch/arm/allwinner/awin_com.c Wed Oct 29 10:28:03 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_com.c Wed Oct 29 10:47:46 2014 +0000
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_com.c,v 1.6 2014/10/15 23:29:46 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_com.c,v 1.7 2014/10/29 10:47:46 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -168,7 +168,7 @@
 
        KASSERT(loc->loc_intr != AWINIO_INTR_DEFAULT);
        asc->asc_ih = intr_establish(loc->loc_intr, IPL_SERIAL,
-           IST_EDGE /* | IST_MPSAFE */, comintr, sc);
+           IST_EDGE | IST_MPSAFE, comintr, sc);
        if (asc->asc_ih == NULL)
                panic("%s: failed to establish interrupt %d",
                    device_xname(self), loc->loc_intr);



Home | Main Index | Thread Index | Old Index