diff options
Diffstat (limited to 'sys/kern/subr_smp.c')
-rw-r--r-- | sys/kern/subr_smp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index d16e2fd..6205799 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -159,7 +159,7 @@ forward_signal(struct thread *td) * this thread, so all we need to do is poke it if it is currently * executing so that it executes ast(). */ - mtx_assert(&sched_lock, MA_OWNED); + THREAD_LOCK_ASSERT(td, MA_OWNED); KASSERT(TD_IS_RUNNING(td), ("forward_signal: thread is not TDS_RUNNING")); @@ -187,8 +187,6 @@ forward_roundrobin(void) struct thread *td; cpumask_t id, map, me; - mtx_assert(&sched_lock, MA_OWNED); - CTR0(KTR_SMP, "forward_roundrobin()"); if (!smp_started || cold || panicstr) |