Clean up thread priority and critical section handling during boot. The
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 Sep 2003 18:37:54 +0000 (18:37 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 Sep 2003 18:37:54 +0000 (18:37 +0000)
commitf8c3996b25d0baeb569716df3396876aea1fe090
tree533d4f7c6e0a95932319212071fd3ec7047fd177
parent6cd7ac15833340721e5c2286b7e34b80717210d8
Clean up thread priority and critical section handling during boot.  The
initial kernel threads (e.g. thread0/proc0) had a priority lower then userland!
Default them to the minimum kernel thread priority.

Thread0 was also unnecessarily left in a critical section, which prevented
certain device probes, such as the APIC 8254 timer test code, from working.
sys/kern/init_main.c
sys/kern/lwkt_thread.c
sys/sys/kernel.h
sys/sys/thread.h
sys/vm/vm_glue.c