diff options
author | julian <julian@FreeBSD.org> | 2004-09-06 07:23:14 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-09-06 07:23:14 +0000 |
commit | 91180c0a8cec56a5b3f52158ed240314737edc1b (patch) | |
tree | 7a6dfdbbecf4fcd50504e13291480d0e22e426fe /sys/kern/kern_switch.c | |
parent | 90a7523335361d296e31fcafd85b8d9085619f1a (diff) | |
download | FreeBSD-src-91180c0a8cec56a5b3f52158ed240314737edc1b.zip FreeBSD-src-91180c0a8cec56a5b3f52158ed240314737edc1b.tar.gz |
Don't do IPIs on behalf of interrupt threads.
just punt straight on through to teh preemption code.
Make a KASSSERT out of a condition that can no longer occur.
MFC after: 1 week
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r-- | sys/kern/kern_switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index eeed120..399e3e9 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -502,8 +502,8 @@ maybe_preempt(struct thread *td) * to the new thread. */ ctd = curthread; - if (ctd->td_kse == NULL || ctd->td_kse->ke_thread != ctd) - return (0); + KASSERT ((ctd->td_kse != NULL && ctd->td_kse->ke_thread == ctd), + ("thread has no (or wrong) sched-private part.")); pri = td->td_priority; cpri = ctd->td_priority; if (pri >= cpri || cold /* || dumping */ || TD_IS_INHIBITED(ctd) || |