PM / Domains: Do not take parent locks to modify subdomain counters
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 8 Aug 2011 21:43:14 +0000 (23:43 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 25 Aug 2011 13:33:43 +0000 (15:33 +0200)
commit3c07cbc488bfd1ad1abf64d09cc692339b5f8a83
treed53a2a9a3635092f289b66dabcbac0fbcefe8d50
parentc4bb3160c8823d3a1e581d7e05fb8b343097e7c8
PM / Domains: Do not take parent locks to modify subdomain counters

After the subdomain counter in struct generic_pm_domain has been
changed into an atomic_t field, it is possible to modify
pm_genpd_poweron() and pm_genpd_poweroff() so that they don't take
the parents locks.  This requires pm_genpd_poweron() to increment
the parent's subdomain counter before calling itself recursively
for the parent and to decrement it if an error is to be returned.

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