From: Rafael J. Wysocki Date: Mon, 8 Aug 2011 21:43:14 +0000 (+0200) Subject: PM / Domains: Do not take parent locks to modify subdomain counters X-Git-Tag: v3.2-rc1~178^2~23^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c07cbc488bfd1ad1abf64d09cc692339b5f8a83;p=pandora-kernel.git 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 --- Reading git-diff-tree failed