diff options
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 69a171a..e7409b3 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); |