aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorSrikar Dronamraju <[email protected]>2020-09-21 15:26:46 +0530
committerMichael Ellerman <[email protected]>2020-10-06 23:22:26 +1100
commit70edd4a7c753ba18e3e4bb9e97b6d85156cea738 (patch)
tree11c780d909f7301ee5c6af159f58ca19cecd154e /drivers/usb/cdns3/cdns3-plat.c
parente29e9ed665eeb6f98cd88672994ecf4aaefdb943 (diff)
powerpc/smp: Optimize remove_cpu_from_masks
While offlining a CPU, system currently iterate through all the CPUs in the DIE to clear sibling, l2_cache and smallcore maps. However if there are more cores in a DIE, system can end up spending more time iterating through CPUs which are completely unrelated. Optimize this by only iterating through smaller but relevant cpumap. If shared_cache is set, cpu_l2_cache_map should be relevant else cpu_sibling_map would be relevant. Signed-off-by: Srikar Dronamraju <[email protected]> Tested-by: Satheesh Rajendran <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions