diff options
author | jeff <jeff@FreeBSD.org> | 2005-02-23 00:50:26 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-02-23 00:50:26 +0000 |
commit | 45e4d1fa2a2f44896cc1e02a8cfc7c0450a74906 (patch) | |
tree | 8b4b31fb6d09fcb209bccc774cabf38210f5d850 | |
parent | eddf96f54f23e3b725fbc1bf1ac3b69f7c588572 (diff) | |
download | FreeBSD-src-45e4d1fa2a2f44896cc1e02a8cfc7c0450a74906.zip FreeBSD-src-45e4d1fa2a2f44896cc1e02a8cfc7c0450a74906.tar.gz |
- A test in sched_switch() is no longer necessary and it is incorrect
when td0 is preempted before it voluntarily switches.
Discovered by: Arjan Van Leeuwen <avleeuwen@gmail.com>
-rw-r--r-- | sys/kern/sched_ule.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 6c14913..44c7682 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1357,8 +1357,6 @@ sched_switch(struct thread *td, struct thread *newtd, int flags) } else if ((ke->ke_flags & KEF_ASSIGNED) == 0) { /* We are ending our run so make our slot available again */ SLOT_RELEASE(td->td_ksegrp); - if (ke->ke_runq == NULL) - panic("Thread not on runq."); kseq_load_rem(ksq, ke); if (TD_IS_RUNNING(td)) { /* |