Retire PCONFIG and leave the priority of thread0 alone when waiting for

interrupt config hooks to execute.
This commit is contained in:
John Baldwin 2011-01-06 22:09:37 +00:00
parent 49fe354a54
commit 6226ec3ef8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217075
2 changed files with 3 additions and 4 deletions

View File

@ -135,7 +135,7 @@ boot_run_interrupt_driven_config_hooks(void *dummy)
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++;

View File

@ -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)