aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2007-07-19 08:58:40 +0000
committerJeff Roberson <jeff@FreeBSD.org>2007-07-19 08:58:40 +0000
commit56696bd1abc36eb3be2b74b6effe0f713d4f8fae (patch)
tree696a7a610f73938ac068fc6a52616b469e89d77f /sys/kern
parent6eeb364b4cbe1ea7934492957145447d79dd9cca (diff)
downloadsrc-56696bd1abc36eb3be2b74b6effe0f713d4f8fae.tar.gz
src-56696bd1abc36eb3be2b74b6effe0f713d4f8fae.zip
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_switch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index 1cbb659ef852..d42a97dc4ca5 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -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,