Skip to content
Commit 3c07cbc4 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

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: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent c4bb3160
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment