]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bb00dee04f5b63c703e77d8b9aad1f0767b350c
treed53a2a9a3635092f289b66dabcbac0fbcefe8d50
parentee3d1e7d76adbb4dd7b70cdd799e9e3e8829ddc3
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