Jeff Roberson a54e85fdbf Commit 4/14 of sched_lock decomposition.
- Use thread_lock() rather than sched_lock for per-thread scheduling
   sychronization.
 - Use the per-process spinlock rather than the sched_lock for per-process
   scheduling synchronization.
 - Move some common code into thread_suspend_switch() to handle the
   mechanics of suspending a thread.  The locking here is incredibly
   convoluted and should be simplified.

Tested by:      kris, current@
Tested on:      i386, amd64, ULE, 4BSD, libthr, libkse, PREEMPTION, etc.
Discussed with: kris, attilio, kmacy, jhb, julian, bde (small parts each)
2007-06-04 23:52:24 +00:00
..
2007-06-04 21:38:48 +00:00
2005-12-04 02:12:43 +00:00
2007-04-23 12:53:00 +00:00
2007-05-23 17:28:21 +00:00
2006-05-28 22:15:28 +00:00
2007-05-01 06:35:54 +00:00
2007-05-23 13:36:02 +00:00