summaryrefslogtreecommitdiffstats
path: root/include/linux/tc.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2019-04-25 11:04:12 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-04-25 23:18:03 +0200
commitb24e196586fecafed1c3cff9b2f87c1a64138ade (patch)
tree5ee94efe0a97db0504273ccc503f66482b5120b7 /include/linux/tc.h
parenta174920d69db9be80332f535db4a8ca2e3bccf24 (diff)
downloadlinux-stable-b24e196586fecafed1c3cff9b2f87c1a64138ade.tar.gz
linux-stable-b24e196586fecafed1c3cff9b2f87c1a64138ade.tar.bz2
linux-stable-b24e196586fecafed1c3cff9b2f87c1a64138ade.zip
PM / Domains: Search for the CPU device outside the genpd lock
While attaching/detaching a device to a PM domain (genpd) with GENPD_FLAG_CPU_DOMAIN set, genpd iterates the cpu_possible_mask to check whether or not the device corresponds to a CPU. This iteration is done while holding the genpd's lock, which is unnecessary. Avoid the locking by restructuring the corresponding code a bit. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/tc.h')
0 files changed, 0 insertions, 0 deletions