diff options
author | Srikar Dronamraju <srikar@linux.vnet.ibm.com> | 2020-08-10 09:18:33 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-16 14:13:32 +0200 |
commit | 72730bfc2a2b91a525f38dfc830f598bdb95f216 (patch) | |
tree | 0ecd72b68851159a16dd0557041e2f3fd0c7b3e5 /arch/powerpc/mm/numa.c | |
parent | powerpc/smp: Allocate cpumask only after searching thread group (diff) | |
download | linux-72730bfc2a2b91a525f38dfc830f598bdb95f216.tar.xz linux-72730bfc2a2b91a525f38dfc830f598bdb95f216.zip |
powerpc/smp: Create coregroup domain
Add percpu coregroup maps and masks to create coregroup domain.
If a coregroup doesn't exist, the coregroup domain will be degenerated
in favour of SMT/CACHE domain. Do note this patch is only creating stubs
for cpu_to_coregroup_id. The actual cpu_to_coregroup_id implementation
would be in a subsequent patch.
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-10-srikar@linux.vnet.ibm.com
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-rw-r--r-- | arch/powerpc/mm/numa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index b2c44c5a81fb..dfebca905acb 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -1245,6 +1245,11 @@ int find_and_online_cpu_nid(int cpu) return new_nid; } +int cpu_to_coregroup_id(int cpu) +{ + return cpu_to_core_id(cpu); +} + static int topology_update_init(void) { topology_inited = 1; |