- Remove explicit references to sched_lock. A simpler assert will do.

Approved by:	re
This commit is contained in:
jeff 2007-07-19 08:58:40 +00:00
parent 1961c471a3
commit b7b0163326

View File

@ -267,8 +267,7 @@ maybe_preempt(struct thread *td)
/*
* Thread is runnable but not yet put on system run queue.
*/
MPASS(ctd->td_lock == &sched_lock);
MPASS(td->td_lock == &sched_lock);
MPASS(ctd->td_lock == td->td_lock);
MPASS(TD_ON_RUNQ(td));
TD_SET_RUNNING(td);
CTR3(KTR_PROC, "preempting to thread %p (pid %d, %s)\n", td,