diff options
author | peter <peter@FreeBSD.org> | 2004-08-28 01:04:44 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-08-28 01:04:44 +0000 |
commit | 9e60f4336ef9b844d4efc56ad86f56271fbaa726 (patch) | |
tree | 3c7a85b53cb826cd1d4d7e3c179fc21a17350df7 /sys/kern/kern_switch.c | |
parent | 0fe47008f64288f55c942ef9a92d2c7b57dc52e9 (diff) | |
download | FreeBSD-src-9e60f4336ef9b844d4efc56ad86f56271fbaa726.zip FreeBSD-src-9e60f4336ef9b844d4efc56ad86f56271fbaa726.tar.gz |
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.
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r-- | sys/kern/kern_switch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 92e229e..2ec45c9 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) || |