Module Name: src
Committed By: skrll
Date: Wed Oct 29 14:41:57 UTC 2014
Modified Files:
src/sys/arch/arm/pic: pic.c
Log Message:
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).
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/arm/pic/pic.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/arch/arm/pic/pic.c
diff -u src/sys/arch/arm/pic/pic.c:1.23 src/sys/arch/arm/pic/pic.c:1.24
--- src/sys/arch/arm/pic/pic.c:1.23 Mon Oct 13 09:21:06 2014
+++ src/sys/arch/arm/pic/pic.c Wed Oct 29 14:41:57 2014
@@ -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 @@ pic_establish_intr(struct pic_softc *pic
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)