mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 13:23:45 +00:00
Systems that initiate frequent suspend/resume from userspace can make the kernel aware by enabling PM_USERSPACE_AUTOSLEEP config. This allows for certain sleep-sensitive code (wireguard/rng) to decide on what preparatory work should be performed (or not) in their pm_notification callbacks. This patch was prompted by the discussion at [1] which attempts to remove CONFIG_ANDROID that currently guards these code paths. [1] https://lore.kernel.org/r/[email protected]/ Suggested-by: Jason A. Donenfeld <[email protected]> Acked-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Kalesh Singh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>