diff options
author | Srikar Dronamraju <srikar@linux.vnet.ibm.com> | 2023-12-14 23:37:12 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-12-15 13:51:34 +1100 |
commit | 0e1c1986e0e65746daa05405d7747ce882f83cf1 (patch) | |
tree | aa84c1d36758dc7e498147034ef96d0c13afbf8d /arch | |
parent | aa80c6343fcf53cbc29f84ba9f89ca87d4e41350 (diff) | |
download | linux-stable-0e1c1986e0e65746daa05405d7747ce882f83cf1.tar.gz linux-stable-0e1c1986e0e65746daa05405d7747ce882f83cf1.tar.bz2 linux-stable-0e1c1986e0e65746daa05405d7747ce882f83cf1.zip |
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
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 3fc8ad9646a4..2cebc53e97f9 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -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; } |