Author: jhb
Date: Thu Jan  6 22:09:37 2011
New Revision: 217075
URL: http://svn.freebsd.org/changeset/base/217075

Log:
  Retire PCONFIG and leave the priority of thread0 alone when waiting for
  interrupt config hooks to execute.

Modified:
  head/sys/kern/subr_autoconf.c
  head/sys/sys/priority.h

Modified: head/sys/kern/subr_autoconf.c
==============================================================================
--- head/sys/kern/subr_autoconf.c       Thu Jan  6 21:14:34 2011        
(r217074)
+++ head/sys/kern/subr_autoconf.c       Thu Jan  6 22:09:37 2011        
(r217075)
@@ -135,7 +135,7 @@ boot_run_interrupt_driven_config_hooks(v
        warned = 0;
        while (!TAILQ_EMPTY(&intr_config_hook_list)) {
                if (msleep(&intr_config_hook_list, &intr_config_hook_lock,
-                   PCONFIG, "conifhk", WARNING_INTERVAL_SECS * hz) ==
+                   0, "conifhk", WARNING_INTERVAL_SECS * hz) ==
                    EWOULDBLOCK) {
                        mtx_unlock(&intr_config_hook_lock);
                        warned++;

Modified: head/sys/sys/priority.h
==============================================================================
--- head/sys/sys/priority.h     Thu Jan  6 21:14:34 2011        (r217074)
+++ head/sys/sys/priority.h     Thu Jan  6 22:09:37 2011        (r217075)
@@ -105,9 +105,8 @@
 #define        PZERO                   (PRI_MIN_KERN + 20)
 #define        PSOCK                   (PRI_MIN_KERN + 24)
 #define        PWAIT                   (PRI_MIN_KERN + 28)
-#define        PCONFIG                 (PRI_MIN_KERN + 32)
-#define        PLOCK                   (PRI_MIN_KERN + 36)
-#define        PPAUSE                  (PRI_MIN_KERN + 40)
+#define        PLOCK                   (PRI_MIN_KERN + 32)
+#define        PPAUSE                  (PRI_MIN_KERN + 36)
 
 #define        PRI_MIN_REALTIME        (128)
 #define        PRI_MAX_REALTIME        (PRI_MIN_TIMESHARE - 1)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to