summaryrefslogtreecommitdiffstats
path: root/include/linux/pm_domain.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-03-13 22:39:37 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2012-03-16 21:44:48 +0100
commit65533bbf63b4f37723fdfedc73d0653958973323 (patch)
treee2a16b9b0966ae6aea1970fe377c70796a281c31 /include/linux/pm_domain.h
parentcc85b20780562d404e18a47b9b55b4a5102ae53e (diff)
downloadtalos-obmc-linux-65533bbf63b4f37723fdfedc73d0653958973323.tar.gz
talos-obmc-linux-65533bbf63b4f37723fdfedc73d0653958973323.zip
PM / Domains: Fix hibernation restore of devices, v2
During resume from hibernation pm_genpd_restore_noirq() should only power off domains whose suspend_power_off flags are set once and not every time it is called for a device in the given domain. Moreover, it shouldn't decrement genpd->suspended_count, because that field is not touched during device freezing and therefore it is always equal to 0 when pm_genpd_restore_noirq() runs for the first device in the given domain. This means pm_genpd_restore_noirq() may use genpd->suspended_count to determine whether or not it it has been called for the domain in question already in this cycle (it only needs to increment that field every time it runs for this purpose) and whether or not it should check if the domain needs to be powered off. For that to work, though, pm_genpd_prepare() has to clear genpd->suspended_count when it runs for the first device in the given domain (in which case that flag need not be cleared during domain initialization). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Cc: stable@vger.kernel.org
Diffstat (limited to 'include/linux/pm_domain.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud