summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_switch.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2007-08-03 23:35:35 +0000
committerjeff <jeff@FreeBSD.org>2007-08-03 23:35:35 +0000
commitbfe5819efe65032451f0fc4f622a1023f71bdb76 (patch)
treeb25b5caf1112b2c6d7d6ec73349973769d544cb1 /sys/kern/kern_switch.c
parente8377e738c6b5d23fad5f7125437708639bc0253 (diff)
downloadFreeBSD-src-bfe5819efe65032451f0fc4f622a1023f71bdb76.zip
FreeBSD-src-bfe5819efe65032451f0fc4f622a1023f71bdb76.tar.gz
- Set SW_PREEMPT when we preempt in critical_exit().
Approved by: re
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r--sys/kern/kern_switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index d42a97d..59d9ce0 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -192,7 +192,7 @@ critical_exit(void)
thread_lock(td);
td->td_critnest--;
SCHED_STAT_INC(switch_owepreempt);
- mi_switch(SW_INVOL, NULL);
+ mi_switch(SW_INVOL|SW_PREEMPT, NULL);
thread_unlock(td);
}
} else
OpenPOWER on IntegriCloud