From 616e5b7b85b44ab3b37e2576ff0a35ebbf8c0c2b Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 22 Jun 2023 13:18:02 +0000 Subject: [PATCH] Instead of tsleep on lbolt do a tsleep with a 1 second timeout. Result is the same and gets rid of a lbolt use. OK miod@ --- sys/arch/i386/i386/apm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index f4b891c0c3f..018185e8734 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.130 2023/02/10 14:34:16 visa Exp $ */ +/* $OpenBSD: apm.c,v 1.131 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)); } } -- 2.20.1