summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTobias Heider <tobhe@cvs.openbsd.org>2023-07-05 08:26:57 +0000
committerTobias Heider <tobhe@cvs.openbsd.org>2023-07-05 08:26:57 +0000
commitba5d101276f62b61d8d7e5a3aaca0a4fdad7006e (patch)
tree1b28277daa45abc6eff400dea362bc4acb0083d3 /sys/arch
parent11691db7dfb0a26dd26519968405c92df81bd01b (diff)
Suspend from suspend_taskq in apmioctl.
ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/dev/apm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/apm.c b/sys/arch/arm64/dev/apm.c
index 13529eb4566..2ccc8229914 100644
--- a/sys/arch/arm64/dev/apm.c
+++ b/sys/arch/arm64/dev/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.22 2023/02/10 14:34:16 visa Exp $ */
+/* $OpenBSD: apm.c,v 1.23 2023/07/05 08:26:56 tobhe Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
@@ -60,6 +60,7 @@
struct taskq *suspend_taskq;
struct task suspend_task;
void do_suspend(void *);
+void suspend(void);
#endif
struct apm_softc {
@@ -223,7 +224,7 @@ apmioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
error = EBADF;
break;
}
- sleep_state(NULL, SLEEP_SUSPEND);
+ suspend();
break;
#ifdef HIBERNATE
case APM_IOC_HIBERNATE: