powerpc/smp: Disable MC domain for shared processor

Like L2-cache info, coregroup information which is used to determine MC
sched domains is only present on dedicated LPARs. i.e PowerVM doesn't
export coregroup information for shared processor LPARs. Hence disable
creating MC domains on shared LPAR Systems.

Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231214180720.310852-3-srikar@linux.vnet.ibm.com
This commit is contained in:
Srikar Dronamraju
2023-12-14 23:37:12 +05:30
committed by Michael Ellerman
parent aa80c6343f
commit 0e1c1986e0
+4
View File
@@ -1055,6 +1055,10 @@ static struct cpumask *cpu_coregroup_mask(int cpu)
static bool has_coregroup_support(void)
{
/* Coregroup identification not available on shared systems */
if (is_shared_processor())
return 0;
return coregroup_enabled;
}