From 6f96710c60dc0dc48fc1ecfff90666119a0d1b1d Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 28 Aug 2004 01:04:44 +0000 Subject: [PATCH] Backout the previous backout (with scott's ok). sched_ule.c:1.122 is believed to fix the problem with ULE that this change triggered. --- sys/kern/kern_switch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 92e229e81ec8..2ec45c956506 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -522,6 +522,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); pri = td->td_priority; cpri = ctd->td_priority; if (pri >= cpri || cold /* || dumping */ || TD_IS_INHIBITED(ctd) ||