FreeBSD Bugzilla – Attachment 195759 Details for
Bug 230290
[patch] acpi: call sleep event handler when sleeping via command line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for acpi.c
acpi-sleep.diff (text/plain), 611 bytes, created by
Johannes Lundberg
on 2018-08-02 09:15:19 UTC
(
hide
)
Description:
Patch for acpi.c
Filename:
MIME Type:
Creator:
Johannes Lundberg
Created:
2018-08-02 09:15:19 UTC
Size:
611 bytes
patch
obsolete
>diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c >index c1bfd880c89..41372978656 100644 >--- a/sys/dev/acpica/acpi.c >+++ b/sys/dev/acpica/acpi.c >@@ -3699,8 +3699,10 @@ acpiioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *t > switch (cmd) { > case ACPIIO_REQSLPSTATE: > state = *(int *)addr; >- if (state != ACPI_STATE_S5) >- return (acpi_ReqSleepState(sc, state)); >+ if (state != ACPI_STATE_S5) { >+ EVENTHANDLER_INVOKE(acpi_sleep_event, state); >+ return 0; >+ } > device_printf(sc->acpi_dev, "power off via acpi ioctl not supported\n"); > error = EOPNOTSUPP; > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 230290
: 195759