From 7a9507b60ed22ce2690727be683103cece3f7635 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Wed, 23 Feb 2005 00:50:26 +0000 Subject: [PATCH] - 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 --- sys/kern/sched_ule.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 6c149137729..44c7682e068 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)) { /*