summaryrefslogtreecommitdiffstats
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-07-12 00:39:21 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2011-07-12 00:39:21 +0200
commitb6c10c84665912985d0bf9b6ae8ce19fc4298d9f (patch)
tree6dd76693427b432646c05633090f390dcc74e2c3 /include/linux/pm_domain.h
parent6f00ff78278fd5d6ac110b6903ee042af2d6af91 (diff)
downloadlinux-stable-b6c10c84665912985d0bf9b6ae8ce19fc4298d9f.tar.gz
linux-stable-b6c10c84665912985d0bf9b6ae8ce19fc4298d9f.tar.bz2
linux-stable-b6c10c84665912985d0bf9b6ae8ce19fc4298d9f.zip
PM / Domains: Make failing pm_genpd_prepare() clean up properly
If pm_generic_prepare() in pm_genpd_prepare() returns error code, the PM domains counter of "prepared" devices should be decremented and its suspend_power_off flag should be reset if this counter drops down to zero. Otherwise, the PM domain runtime PM code will not handle the domain correctly (it will permanently think that system suspend is in progress). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/pm_domain.h')
0 files changed, 0 insertions, 0 deletions