From 413ea6f543cd81b948d8d3ffce333f0b23ce0b42 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Fri, 3 Aug 2007 23:35:35 +0000 Subject: [PATCH] - Set SW_PREEMPT when we preempt in critical_exit(). Approved by: re --- sys/kern/kern_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index d42a97dc4ca5..59d9ce0f95bd 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