mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use an mp-safe callout for endtsleep.
This commit is contained in:
parent
2191340786
commit
1512b5d6ab
3 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue