PM / Domains: Introduce simplified power on routine for system resume
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 5 Aug 2012 23:39:16 +0000 (01:39 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 3 Sep 2012 23:36:00 +0000 (01:36 +0200)
commit802d8b49a7705298b62ac35a59b867f1288caaf3
tree21b33d1122b7cdbe02ba87a5d0c3e4177cc71931
parent4cbe5a555fa58a79b6ecbb6c531b8bab0650778d
PM / Domains: Introduce simplified power on routine for system resume

Introduce function pm_genpd_sync_poweron() for restoring domain power
during resume from system suspend and hibernation.  It can be much
simpler than pm_genpd_poweron(), because it doesn't have to care
about locking and it can skip many checks done by the latter.

Modify pm_genpd_resume_noirq() and pm_genpd_restore_noirq() to use
the new function.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c