diff options
author | 2011-08-08 23:43:14 +0200 | |
---|---|---|
committer | 2011-08-25 15:33:43 +0200 | |
commit | 3c07cbc488bfd1ad1abf64d09cc692339b5f8a83 (patch) | |
tree | d53a2a9a3635092f289b66dabcbac0fbcefe8d50 /fs/proc/array.c | |
parent | PM / Domains: Implement subdomain counters as atomic fields (diff) | |
download | wireguard-linux-3c07cbc488bfd1ad1abf64d09cc692339b5f8a83.tar.xz wireguard-linux-3c07cbc488bfd1ad1abf64d09cc692339b5f8a83.zip |
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>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions