summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJan Klemkow <jan@cvs.openbsd.org>2024-10-14 11:49:35 +0000
committerJan Klemkow <jan@cvs.openbsd.org>2024-10-14 11:49:35 +0000
commitaf450be142603212535bbb38aeafc72c06ac6a88 (patch)
tree9098a3e0ddf5c72326009083d35366b2a1c49d32 /sys/arch
parent08e774a1452ec3a35975a22cb52e8809f7e5f403 (diff)
Fix build w/o SUSPEND option
with tweaks from miod@ ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/acpi_machdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c
index 071da1abb1d..13b3dab3232 100644
--- a/sys/arch/amd64/amd64/acpi_machdep.c
+++ b/sys/arch/amd64/amd64/acpi_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_machdep.c,v 1.111 2024/09/01 03:08:56 jsg Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.112 2024/10/14 11:49:34 jan Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -366,10 +366,10 @@ acpi_attach_machdep(struct acpi_softc *sc)
/* Unmap, will be remapped in acpi_sleep_cpu */
pmap_kremove(ACPI_TRAMPOLINE, PAGE_SIZE);
pmap_kremove(ACPI_TRAMP_DATA, PAGE_SIZE);
-#endif /* SMALL_KERNEL */
+#endif /* ! SMALL_KERNEL */
}
-#ifndef SMALL_KERNEL
+#if defined(SUSPEND) && !defined(SMALL_KERNEL)
/*
* This function may not have local variables due to a bug between
* acpi_savecpu() and the resume path.
@@ -562,7 +562,7 @@ resume_mp(void)
}
#endif /* MULTIPROCESSOR */
-#endif /* ! SMALL_KERNEL */
+#endif /* defined(SUSPEND) && !defined(SMALL_KERNEL) */
bus_dma_tag_t
acpi_iommu_device_map(struct aml_node *node, bus_dma_tag_t dmat)