Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157871493
D47094.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
703 B
Referenced Files
None
Subscribers
None
D47094.id.diff
View Options
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -3903,13 +3903,22 @@
UINT32
acpi_event_power_button_sleep(void *context)
{
+#if defined(__amd64__) || defined(__i386__)
struct acpi_softc *sc = (struct acpi_softc *)context;
+#else
+ (void)context;
+#endif
ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
+#if defined(__amd64__) || defined(__i386__)
if (ACPI_FAILURE(AcpiOsExecute(OSL_NOTIFY_HANDLER,
acpi_invoke_sleep_eventhandler, &sc->acpi_power_button_sx)))
return_VALUE (ACPI_INTERRUPT_NOT_HANDLED);
+#else
+ shutdown_nice(RB_POWEROFF);
+#endif
+
return_VALUE (ACPI_INTERRUPT_HANDLED);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 27, 12:55 AM (11 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33542605
Default Alt Text
D47094.id.diff (703 B)
Attached To
Mode
D47094: ACPI: Implement power button on !x86
Attached
Detach File
Event Timeline
Log In to Comment