The roundrobin callout from sched_4bsd is MPSAFE, so set up the

callout as MPSAFE to avoid grabbing Giant.

Reviewed by:	jhb
This commit is contained in:
Robert Watson 2004-03-05 19:27:04 +00:00
parent 171ae50e88
commit 8cbec0c8dd

View File

@ -463,7 +463,7 @@ sched_setup(void *dummy)
sched_quantum = SCHED_QUANTUM;
hogticks = 2 * sched_quantum;
callout_init(&roundrobin_callout, 0);
callout_init(&roundrobin_callout, CALLOUT_MPSAFE);
/* Kick off timeout driven events by calling first time. */
roundrobin(NULL);