summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/arm64/acpi_machdep.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/arm64/arm64/acpi_machdep.c b/sys/arch/arm64/arm64/acpi_machdep.c
index 97377d11654..abcdfe70b12 100644
--- a/sys/arch/arm64/arm64/acpi_machdep.c
+++ b/sys/arch/arm64/arm64/acpi_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_machdep.c,v 1.19 2022/02/09 23:54:55 deraadt Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.20 2022/09/13 17:14:54 kettenis Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
@@ -22,6 +22,7 @@
#include <uvm/uvm_extern.h>
+#include <machine/apmvar.h>
#include <machine/bus.h>
#include <machine/fdt.h>
@@ -33,6 +34,8 @@
#include <arm64/dev/acpiiort.h>
+#include "apm.h"
+
int lid_action;
int pwr_action = 1;
@@ -134,7 +137,9 @@ acpi_release_glk(uint32_t *lock)
void
acpi_attach_machdep(struct acpi_softc *sc)
{
- /* Nothing to do. */
+#if NAPM > 0
+ apm_setinfohook(acpi_apminfo);
+#endif
}
void *