Source-Changes-HG archive

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

[src/trunk]: src/sys/kern A new survey of the code indicates that the very hi...



details:   https://anonhg.NetBSD.org/src/rev/76214ff9e67d
branches:  trunk
changeset: 750943:76214ff9e67d
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Tue Jan 19 21:54:53 2010 +0000

description:
A new survey of the code indicates that the very highest interrupt
priority level where the kernel accesses alldevs is IPL_VM, where
some hardware interrupt handlers call config_deactivate(9).  Lower
the IPL of alldevs_mtx from IPL_HIGH to IPL_VM, accordingly.

diffstat:

 sys/kern/subr_autoconf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9e56c6014b69 -r 76214ff9e67d sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Tue Jan 19 21:24:36 2010 +0000
+++ b/sys/kern/subr_autoconf.c  Tue Jan 19 21:54:53 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.198 2010/01/19 21:24:36 dyoung Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.199 2010/01/19 21:54:53 dyoung Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.198 2010/01/19 21:24:36 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.199 2010/01/19 21:54:53 dyoung Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -250,7 +250,7 @@
 
        KASSERT(config_initialized == false);
 
-       mutex_init(&alldevs_mtx, MUTEX_DEFAULT, IPL_HIGH);
+       mutex_init(&alldevs_mtx, MUTEX_DEFAULT, IPL_VM);
 
        mutex_init(&config_misc_lock, MUTEX_DEFAULT, IPL_NONE);
        cv_init(&config_misc_cv, "cfgmisc");



Home | Main Index | Thread Index | Old Index