powerpc/smp: Dont assume l2-cache to be superset of sibling
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Sun, 13 Sep 2020 17:10:38 +0000 (22:40 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Sep 2020 12:13:31 +0000 (22:13 +1000)
commitf6606cfdfbcda00ce8a6e63c8fc13c93e73ac059
tree28441bdab758d13b2816c66f27038df228e94ab0
parent3c6032a8fe99547d31b2b57715e303a67d1b0c66
powerpc/smp: Dont assume l2-cache to be superset of sibling

Current code assumes that cpumask of cpus sharing a l2-cache mask will
always be a superset of cpu_sibling_mask.

Lets stop that assumption. cpu_l2_cache_mask is a superset of
cpu_sibling_mask if and only if shared_caches is set.

Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200913171038.GB11808@linux.vnet.ibm.com
arch/powerpc/kernel/smp.c