linux/arch/arm/common
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
..
Kconfig [ARM] 4251/1: Fix sharpsl_pm dependency 2007-03-08 13:34:02 +00:00
Makefile [ARM] 3620/2: ixp23xx: add uengine loader support 2006-06-22 10:30:56 +01:00
dmabounce.c Merge AT91, EP93xx, General devel, PXA, S3C, V6+ and Xscale trees 2007-02-17 20:09:53 +00:00
gic.c [ARM] 4108/2: Allow multiple GIC interrupt controllers in a system 2007-02-15 14:44:10 +00:00
icst307.c [ARM] Off-by-one in arch/arm/common/icst* 2006-09-27 23:17:54 +01:00
icst525.c [ARM] Off-by-one in arch/arm/common/icst* 2006-09-27 23:17:54 +01:00
locomo.c [ARM] Remove compatibility layer for ARM irqs 2006-11-30 12:24:47 +00:00
rtctime.c [PATCH] mark struct file_operations const 2 2007-02-12 09:48:44 -08:00
sa1111.c [ARM] Remove compatibility layer for ARM irqs 2006-11-30 12:24:47 +00:00
scoop.c [ARM] 3478/1: SharpSL SCOOP: Fix potenial build failure 2006-04-18 23:18:53 +01:00
sharpsl_param.c [PATCH] ARM: 2716/1: SharpSL Param: Fix typo 2005-06-20 18:51:07 +01:00
sharpsl_pm.c power management: implement pm_ops.valid for everybody 2007-04-30 16:40:40 -07:00
time-acorn.c Initial blind fixup for arm for irq changes 2006-10-06 10:59:54 -07:00
uengine.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
via82c505.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
vic.c [ARM] Remove compatibility layer for ARM irqs 2006-11-30 12:24:47 +00:00