summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-07-23 19:59:16 +0000
committerscottl <scottl@FreeBSD.org>2004-07-23 19:59:16 +0000
commit36b2b29e6c55508d25ebe311786a1022916e8574 (patch)
tree22cba00e55fe8f56df02af77a27fa933767a71f9 /sys/kern
parent760c049c366eebc0109e0f5a6246bd3bfc9a5afa (diff)
downloadFreeBSD-src-36b2b29e6c55508d25ebe311786a1022916e8574.zip
FreeBSD-src-36b2b29e6c55508d25ebe311786a1022916e8574.tar.gz
Remove the previous hack since it doesn't make a difference and is getting
in the way of debugging.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_switch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index 4822c5e..5183a35 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -450,7 +450,6 @@ critical_exit(void)
KASSERT(td->td_critnest != 0,
("critical_exit: td_critnest == 0"));
if (td->td_critnest == 1) {
-#if 0
#ifdef PREEMPTION
mtx_assert(&sched_lock, MA_NOTOWNED);
if (td->td_pflags & TDP_OWEPREEMPT) {
@@ -459,7 +458,6 @@ critical_exit(void)
mtx_unlock_spin(&sched_lock);
}
#endif
-#endif
td->td_critnest = 0;
cpu_critical_exit();
} else {
OpenPOWER on IntegriCloud