Fix numerous bugs in the BSD4 scheduler introduced in recent commits.
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 29 May 2006 22:57:24 +0000 (22:57 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 29 May 2006 22:57:24 +0000 (22:57 +0000)
commit500177248a2ce7e76d04684425c0fd767e4b4316
tree417266ee5a9c2a021a5bda7d1a0c3b7cbfc3e2f0
parente5c830a47d6178217ddc1e192e4c28a9c2857ec2
Fix numerous bugs in the BSD4 scheduler introduced in recent commits.
Primarily, do not try to get a spinlock from a hard interrupt (e.g. IPI)
if spinlocks are already being held by the cpu.

This will probably have to be made an absolute rule - no spinlocks at all
in a hard interrupt / IPI (vs an interrupt thread).
sys/kern/kern_fork.c
sys/kern/usched_bsd4.c
sys/kern/usched_dummy.c
sys/sys/thread.h