mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00:00
9b03933080
S4 suspend to disk will disable GPE's permanently because acpi_gpe_sleep_prepare() does not have a counterpart at resume time. Thus, those devices became unavailable for wakeup from subsequent S3 suspend-to-ram. Here acpi_gpe_sleep_prepare() is removed, and upon suspend acpi_enable_wakeup_device() gets its functionality. Upon resume, acpi_disable_wakeup_device() restores the state. https://bugzilla.novell.com/show_bug.cgi?id=292300 Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Len Brown <len.brown@intel.com>
10 lines
284 B
C
10 lines
284 B
C
|
|
extern u8 sleep_states[];
|
|
extern int acpi_suspend (u32 state);
|
|
|
|
extern void acpi_enable_wakeup_device_prep(u8 sleep_state);
|
|
extern void acpi_enable_wakeup_device(u8 sleep_state);
|
|
extern void acpi_disable_wakeup_device(u8 sleep_state);
|
|
|
|
extern int acpi_sleep_prepare(u32 acpi_state);
|