diff options
| author | Johannes Berg <[email protected]> | 2007-04-30 15:09:54 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-04-30 16:40:40 -0700 |
| commit | e8c9c502690efd24b7055bf608e7a3c34216848b (patch) | |
| tree | 1583f34ec9cac07ddfdcb24de66e49718b107436 /include/linux/debugobjects.h | |
| parent | 11d77d0c01b80e44c7aceb21928508dafce774f9 (diff) | |
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 <[email protected]>
Cc: David Brownell <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Cc: [email protected]
Cc: Len Brown <[email protected]>
Acked-by: Russell King <[email protected]>
Cc: Greg KH <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Paul Mundt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions