diff options
| author | Srikar Dronamraju <srikar@linux.vnet.ibm.com> | 2020-08-10 12:48:30 +0530 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-16 22:13:31 +1000 |
| commit | caa8e29da59926bef099b46ab6280333d583e944 (patch) | |
| tree | e98dec4cceb4be5accf376178f731feeadbff113 /lib/mpi/mpiutil.c | |
| parent | f6606cfdfbcda00ce8a6e63c8fc13c93e73ac059 (diff) | |
powerpc/smp: Optimize start_secondary
In start_secondary, even if shared_cache was already set, system does a
redundant match for cpumask. This redundant check can be removed by
checking if shared_cache is already set.
While here, localize the sibling_mask variable to within the if
condition.
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200810071834.92514-7-srikar@linux.vnet.ibm.com
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
