Use an mp-safe callout for endtsleep.

This commit is contained in:
Jake Burkholder 2000-12-01 04:55:52 +00:00
parent 2191340786
commit 1512b5d6ab
3 changed files with 4 additions and 2 deletions

View file

@ -313,7 +313,7 @@ proc0_init(void *dummy __unused)
bcopy("swapper", p->p_comm, sizeof ("swapper"));
callout_init(&p->p_itcallout, 0);
callout_init(&p->p_slpcallout, 0);
callout_init(&p->p_slpcallout, 1);
/* Create credentials. */
cred0.p_refcnt = 1;

View file

@ -484,7 +484,7 @@ again:
LIST_INIT(&p2->p_contested);
callout_init(&p2->p_itcallout, 0);
callout_init(&p2->p_slpcallout, 0);
callout_init(&p2->p_slpcallout, 1);
#ifdef KTRACE
/*

View file

@ -273,6 +273,7 @@ SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, 0, FSCALE, "");
/*
* Recompute process priorities, every hz ticks.
* MP-safe, called without the Giant mutex.
*/
/* ARGSUSED */
static void
@ -745,6 +746,7 @@ out:
* If process hasn't been awakened (wchan non-zero),
* set timeout flag and undo the sleep. If proc
* is stopped, just unsleep so it will remain stopped.
* MP-safe, called without the Giant mutex.
*/
static void
endtsleep(arg)