- Set SW_PREEMPT when we preempt in critical_exit().

Approved by:	re
This commit is contained in:
Jeff Roberson 2007-08-03 23:35:35 +00:00
parent 3726942956
commit 413ea6f543

View File

@ -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