artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1be2752
)
Instead of tsleep on lbolt do a tsleep with a 1 second timeout.
author
claudio
<claudio@openbsd.org>
Thu, 22 Jun 2023 13:18:02 +0000
(13:18 +0000)
committer
claudio
<claudio@openbsd.org>
Thu, 22 Jun 2023 13:18:02 +0000
(13:18 +0000)
Result is the same and gets rid of a lbolt use.
OK miod@
sys/arch/i386/i386/apm.c
patch
|
blob
|
history
diff --git
a/sys/arch/i386/i386/apm.c
b/sys/arch/i386/i386/apm.c
index
f4b891c
..
018185e
100644
(file)
--- a/
sys/arch/i386/i386/apm.c
+++ b/
sys/arch/i386/i386/apm.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: apm.c,v 1.13
0 2023/02/10 14:34:16 visa Exp $
*/
+/* $OpenBSD: apm.c,v 1.13
1 2023/06/22 13:18:02 claudio Exp $
*/
/*-
* Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved.
@@
-907,7
+907,7
@@
apm_thread(void *v)
rw_enter_write(&sc->sc_lock);
(void) apm_periodic_check(sc);
rw_exit_write(&sc->sc_lock);
- tsleep_nsec(&
lbolt, PWAIT, "apmev", INFSLP
);
+ tsleep_nsec(&
nowake, PWAIT, "apmev", SEC_TO_NSEC(1)
);
}
}