diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-06-28 08:23:26 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-06-28 08:23:26 +0000 |
commit | 76401ff66afbf67b6f6aa86d8975c775e5646835 (patch) | |
tree | c940b1d81a0e321a088f9659035179cdbff1bbc9 /sys/kern/kern_sig.c | |
parent | f8d70ade55f5d4ec6464845c1d9990b46055a949 (diff) |
First step at removing struct sleep_state.
Pass the timeout and sleep priority not only to sleep_setup() but also
to sleep_finish(). With that sls_timeout and sls_catch can be removed
from struct sleep_state.
The timeout is now setup first thing in sleep_finish() and no longer as
last thing in sleep_setup(). This should not cause a noticeable difference
since the code run between sleep_setup() and sleep_finish() is minimal.
OK kettenis@
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 52e8571663b..5304c904dab 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.306 2023/04/03 11:57:50 claudio Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.307 2023/06/28 08:23:25 claudio Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -2170,9 +2170,9 @@ single_thread_wait(struct process *pr, int recheck) /* wait until they're all suspended */ wait = pr->ps_singlecount > 0; while (wait) { - sleep_setup(&sls, &pr->ps_singlecount, PWAIT, "suspend", 0); + sleep_setup(&sls, &pr->ps_singlecount, PWAIT, "suspend"); wait = pr->ps_singlecount > 0; - sleep_finish(&sls, wait); + sleep_finish(&sls, PWAIT, 0, wait); if (!recheck) break; } |