mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
It makes little sense but still possible to put Hyper-V guests into suspend-to-idle state. To wake them up two wakeup sources were registered in the past: hyperv-keyboard and hid-hyperv. However, since commiteed4d47efe("ACPI / sleep: Ignore spurious SCI wakeups from suspend-to-idle") pm_wakeup_event() from these devices is ignored. Switch to pm_wakeup_hard_event() API as these devices are actually the only possible way to wakeup Hyper-V guests. Fixes:eed4d47efe(ACPI / sleep: Ignore spurious SCI wakeups from suspend-to-idle) Reviewed-by: Rafael J. Wysocki <[email protected]> Acked-by: K. Y. Srinivasan <[email protected]> Acked-by: Jiri Kosina <[email protected]> Signed-off-by: Vitaly Kuznetsov <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>