summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2019-06-10 15:06:03 +0000
committermpi <mpi@openbsd.org>2019-06-10 15:06:03 +0000
commit69900f2bb28629e2fdef7876c3e20489e0929cdd (patch)
treec11ab06b4afedefcd68e2a448ceb7f18a89af5f3
parentdelete references to ERR pages from SEE ALSO where such (diff)
downloadwireguard-openbsd-69900f2bb28629e2fdef7876c3e20489e0929cdd.tar.xz
wireguard-openbsd-69900f2bb28629e2fdef7876c3e20489e0929cdd.zip
Use PWAIT instead of PUSER in tsleep(9).
It doesn't matter in this case and reducing the number of PUSER makes the scheduler logic easier to understand. ok kettenis@, visa@
-rw-r--r--sys/arch/i386/i386/esm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/esm.c b/sys/arch/i386/i386/esm.c
index 975ffc59741..584595304a5 100644
--- a/sys/arch/i386/i386/esm.c
+++ b/sys/arch/i386/i386/esm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esm.c,v 1.59 2015/09/08 07:12:56 deraadt Exp $ */
+/* $OpenBSD: esm.c,v 1.60 2019/06/10 15:06:03 mpi Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -331,7 +331,7 @@ esm_watchdog(void *arg, int period)
* should have a process context we can sleep in.
*/
while (sc->sc_step != 0) {
- if (tsleep(sc, PUSER | PCATCH, "esm", 0) == EINTR) {
+ if (tsleep(sc, PWAIT | PCATCH, "esm", 0) == EINTR) {
splx(s);
return (sc->sc_wdog_period);
}