summaryrefslogtreecommitdiff
path: root/drivers/base/power/main.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-07-17 17:19:25 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-07-22 02:30:15 +0200
commitbd8c9ba3b1e2037af5af4e48aea1087212838179 (patch)
tree72917568ecaf4569ac95294d832b006ca1410824 /drivers/base/power/main.c
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
PM / suspend: Export pm_suspend_target_state
Have the core suspend/resume framework store the system-wide suspend state (suspend_state_t) we are about to enter, and expose it to drivers via pm_suspend_target_state in order to retrieve that. The state is assigned in suspend_devices_and_enter(). This is useful for platform specific drivers that may need to take a slightly different suspend/resume path based on the system's suspend/resume state being entered. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/main.c')
0 files changed, 0 insertions, 0 deletions