diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-26 13:40:53 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-26 13:40:53 +0200 |
commit | 43e8317b0bba1d6eb85f38a4a233d82d7c20d732 (patch) | |
tree | 9598176b6c0c0660df93541b1bd5f4ccc5ad450c /drivers/ata | |
parent | PM / sleep: Add state field to pm_states[] entries (diff) | |
download | linux-43e8317b0bba1d6eb85f38a4a233d82d7c20d732.tar.xz linux-43e8317b0bba1d6eb85f38a4a233d82d7c20d732.zip |
PM / sleep: Use valid_state() for platform-dependent sleep states only
Use the observation that, for platform-dependent sleep states
(PM_SUSPEND_STANDBY, PM_SUSPEND_MEM), a given state is either
always supported or always unsupported and store that information
in pm_states[] instead of calling valid_state() every time we
need to check it.
Also do not use valid_state() for PM_SUSPEND_FREEZE, which is always
valid, and move the pm_test_level validity check for PM_SUSPEND_FREEZE
directly into enter_state().
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions