Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/pic In the MULTIPROCESSOR case mark all interru...



details:   https://anonhg.NetBSD.org/src/rev/755102940d11
branches:  trunk
changeset: 803469:755102940d11
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Oct 29 14:41:57 2014 +0000

description:
In the MULTIPROCESSOR case mark all interrupt handlers not at IPL_VM as
mpsafe, so the kernel_lock is only taken at IPL_VM as per spl(9).

diffstat:

 sys/arch/arm/pic/pic.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 27e6bd1680a8 -r 755102940d11 sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Wed Oct 29 14:33:23 2014 +0000
+++ b/sys/arch/arm/pic/pic.c    Wed Oct 29 14:41:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.23 2014/10/13 09:21:06 skrll Exp $   */
+/*     $NetBSD: pic.c,v 1.24 2014/10/29 14:41:57 skrll Exp $   */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -32,7 +32,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.23 2014/10/13 09:21:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.24 2014/10/29 14:41:57 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -646,7 +646,7 @@
        is->is_func = func;
        is->is_arg = arg;
 #ifdef MULTIPROCESSOR
-       is->is_mpsafe = (type & IST_MPSAFE);
+       is->is_mpsafe = (type & IST_MPSAFE) || ipl != IPL_VM;
 #endif
 
        if (pic->pic_ops->pic_source_name)



Home | Main Index | Thread Index | Old Index