diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/dev/apm.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/apm.c | 4 | ||||
-rw-r--r-- | sys/arch/loongson/dev/apm.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/arm64/dev/apm.c b/sys/arch/arm64/dev/apm.c index 80b0d77f967..13529eb4566 100644 --- a/sys/arch/arm64/dev/apm.c +++ b/sys/arch/arm64/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.21 2023/01/22 13:14:21 kettenis Exp $ */ +/* $OpenBSD: apm.c,v 1.22 2023/02/10 14:34:16 visa Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -345,7 +345,7 @@ apm_record_event(u_int event) return 1; apm_evindex++; - KNOTE(&sc->sc_note, APM_EVENT_COMPOSE(event, apm_evindex)); + knote_locked(&sc->sc_note, APM_EVENT_COMPOSE(event, apm_evindex)); return 0; } diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index 7cd1f27440c..f4b891c0c3f 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.129 2023/01/30 10:49:04 jsg Exp $ */ +/* $OpenBSD: apm.c,v 1.130 2023/02/10 14:34:16 visa Exp $ */ /*- * Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved. @@ -311,7 +311,7 @@ apm_record_event(struct apm_softc *sc, u_int type) } apm_evindex++; - KNOTE(&sc->sc_note, APM_EVENT_COMPOSE(type, apm_evindex)); + knote_locked(&sc->sc_note, APM_EVENT_COMPOSE(type, apm_evindex)); return (0); } diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c index 859c692f2d6..984c2aeb75b 100644 --- a/sys/arch/loongson/dev/apm.c +++ b/sys/arch/loongson/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.41 2022/11/19 16:23:48 cheloha Exp $ */ +/* $OpenBSD: apm.c,v 1.42 2023/02/10 14:34:16 visa Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -363,7 +363,7 @@ apm_record_event(u_int event, const char *src, const char *msg) return (1); apm_evindex++; - KNOTE(&sc->sc_note, APM_EVENT_COMPOSE(event, apm_evindex)); + knote_locked(&sc->sc_note, APM_EVENT_COMPOSE(event, apm_evindex)); return (0); } |