diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2007-06-05 00:00:57 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2007-06-05 00:00:57 +0000 |
commit | 982d11f836278f1e95ae1ae398aa4d1d07a19006 (patch) | |
tree | 6727b982fa0d93b8aafab313bdc797aee9e314d2 /sys/kern/kern_acct.c | |
parent | a8cdbf449a61645a36419c3ae4f1134fc39d8f8e (diff) | |
download | src-982d11f836278f1e95ae1ae398aa4d1d07a19006.tar.gz src-982d11f836278f1e95ae1ae398aa4d1d07a19006.zip |
Commit 14/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.
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)
Notes
Notes:
svn path=/head/; revision=170307
Diffstat (limited to 'sys/kern/kern_acct.c')
-rw-r--r-- | sys/kern/kern_acct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 69a171afa84f..e7409b33bdc0 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -612,9 +612,9 @@ acct_thread(void *dummy) /* This is a low-priority kernel thread. */ pri = PRI_MAX_KERN; - mtx_lock_spin(&sched_lock); + thread_lock(curthread); sched_prio(curthread, pri); - mtx_unlock_spin(&sched_lock); + thread_unlock(curthread); /* If another accounting kthread is already running, just die. */ sx_xlock(&acct_sx); |