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:
parent
171ae50e88
commit
8cbec0c8dd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user