1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

- 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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171712

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