aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2019-04-25 09:04:12 +0000
committerRafael J. Wysocki <[email protected]>2019-04-25 21:18:03 +0000
commitb24e196586fecafed1c3cff9b2f87c1a64138ade (patch)
tree5ee94efe0a97db0504273ccc503f66482b5120b7 /drivers/fpga/fpga-mgr.c
parentPM / Domains: Drop unused in-parameter to some genpd functions (diff)
downloadkernel-b24e196586fecafed1c3cff9b2f87c1a64138ade.tar.gz
kernel-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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions