android_kernel_xiaomi_sm8350/arch/sh
Johannes Berg e8c9c50269 power management: implement pm_ops.valid for everybody
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>
2007-04-30 16:40:40 -07:00
..
boards power management: implement pm_ops.valid for everybody 2007-04-30 16:40:40 -07:00
boot sh: Fix .empty_zero_page alignment for PAGE_SIZE > 4096. 2006-12-12 08:53:29 +09:00
cchips sh: rts7751r2d board updates. 2007-02-15 18:20:52 +09:00
configs sh: Enable SM501 support for RTS7751R2D. 2007-03-05 14:13:26 +09:00
drivers sh: Fix PCI BAR address-space wraparound. 2007-03-12 14:50:49 +09:00
kernel sh: Kill bogus GCC4 symbol exports. 2007-03-28 17:24:47 +09:00
lib [STRING]: Move strcasecmp/strncasecmp to lib/string.c 2007-04-26 01:54:39 -07:00
math-emu sh: Kill off remaining config.h references. 2006-10-03 13:19:02 +09:00
mm sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
oprofile sh: Fixup cpu_data references for the non-boot CPUs. 2007-02-13 10:54:45 +09:00
tools sh: Kill off dead bigsur and ec3104 boards. 2007-02-14 15:06:09 +09:00
Kconfig sh: Kill off dead bigsur and ec3104 boards. 2007-02-14 15:06:09 +09:00
Kconfig.debug sh: Trivial build fixes for SH-2 support. 2006-12-12 08:42:07 +09:00
Makefile sh: Kill off dead bigsur and ec3104 boards. 2007-02-14 15:06:09 +09:00