git: 9b4caca81de2 - main - acpi: Don't compile CPU_VENDOR_{AMD,HYGON} cases on non-x86_64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Sep 2026 18:29:56 UTC
The branch main has been updated by obiwac:
URL: https://cgit.FreeBSD.org/src/commit/?id=9b4caca81de24e31fe06e9aecc656f7c6b30edb5
commit 9b4caca81de24e31fe06e9aecc656f7c6b30edb5
Author: Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-09-16 18:28:22 +0000
Commit: Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-09-16 18:29:49 +0000
acpi: Don't compile CPU_VENDOR_{AMD,HYGON} cases on non-x86_64
Fixes build on aarch64.
Fixes: 5f68acc931a4 ("acpi: Warn if no amdsmu(4) loaded after suspend-to-idle resume")
Sponsored by: The FreeBSD Foundation
---
sys/dev/acpica/acpi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 33d4572b1d2e..795c727aba6f 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -3664,13 +3664,14 @@ static void
check_post_suspend_to_idle(device_t dev)
{
devclass_t dc;
-#if defined(__x86_64__)
+#if defined(__amd64__)
u_int vendor_id = cpu_vendor_id;
#else
u_int vendor_id = 0;
#endif
switch (vendor_id) {
+#if defined(__amd64__)
case CPU_VENDOR_AMD:
case CPU_VENDOR_HYGON:
dc = devclass_find("amdsmu");
@@ -3682,6 +3683,7 @@ check_post_suspend_to_idle(device_t dev)
"amdsmu(4) is not attached; unable to verify S0i3 entry. "
"It is unlikely the system entered a deep sleep state.\n");
break;
+#endif
default:
device_printf(dev,
"Resumed from suspend-to-idle on a processor FreeBSD does "