mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
e8c9c50269
Almost all users of pm_ops only support mem sleep, don't check in .valid and don't reject any others in .prepare so users can be confused if they check /sys/power/state, especially when new states are added (these would then result in s-t-r although they're supposed to be something different). This patch implements a generic pm_valid_only_mem function that is then exported for users and puts it to use in almost all existing pm_ops. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: David Brownell <david-b@pacbell.net> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: linux-pm@lists.linux-foundation.org Cc: Len Brown <lenb@kernel.org> Acked-by: Russell King <rmk@arm.linux.org.uk> Cc: Greg KH <greg@kroah.com> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
clock.c | ||
common-smdk.c | ||
cpu.c | ||
devs.c | ||
dma.c | ||
gpio.c | ||
irq.c | ||
Kconfig | ||
Makefile | ||
pm-simtec.c | ||
pm.c | ||
s3c244x-irq.c | ||
s3c244x.c | ||
s3c244x.h | ||
sleep.S | ||
time.c |