diff options
author | jeff <jeff@FreeBSD.org> | 2007-06-04 23:52:24 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2007-06-04 23:52:24 +0000 |
commit | 8931208c4016d274f5e219f0db127ef054682b00 (patch) | |
tree | 43b5c3cd65f3737b6bf9683182cddac8483b1a1d /sys/kern/kern_clock.c | |
parent | 15c2dd7a1fd67c01c85a5ed9bea3c15a0d5a4d0b (diff) | |
download | FreeBSD-src-8931208c4016d274f5e219f0db127ef054682b00.zip FreeBSD-src-8931208c4016d274f5e219f0db127ef054682b00.tar.gz |
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)
Diffstat (limited to 'sys/kern/kern_clock.c')
0 files changed, 0 insertions, 0 deletions