summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-08-20 05:58:38 +0000
committerscottl <scottl@FreeBSD.org>2004-08-20 05:58:38 +0000
commit30583f7adf72c716f54e01c3c0e72211586b4149 (patch)
tree1530ea99a7b2e321008a63408ba10a7e4d00afe0
parent83fb3b8169af54cf8dd7b52b74792426e8c79f76 (diff)
downloadFreeBSD-src-30583f7adf72c716f54e01c3c0e72211586b4149.zip
FreeBSD-src-30583f7adf72c716f54e01c3c0e72211586b4149.tar.gz
Revert the previous change. It works great for 4BSD but causes major
problems for ULE. The reason is quite unknown and worrisome.
-rw-r--r--sys/kern/kern_switch.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index f2aa3e0..92e229e 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -522,10 +522,6 @@ 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) ||
OpenPOWER on IntegriCloud