mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 21:34:39 +00:00
Change /sys/power/state to not advertise any valid states (except for disk if SOFTWARE_SUSPEND is enabled) when no pm_ops have been set so userspace can easily discover what states should be available. Signed-off-by: Johannes Berg <[email protected]> Cc: "Randy.Dunlap" <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Pavel Macheck <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>