Skip to content

Commit 4bce545

Browse files
srikardmpe
authored andcommitted
powerpc/topology: Update topology_core_cpumask
On Power, cpu_core_mask and cpu_cpu_mask refer to the same set of CPUs. cpu_cpu_mask is needed by scheduler, hence look at deprecating cpu_core_mask. Before deleting the cpu_core_mask, ensure its only user is moved to cpu_cpu_mask. Signed-off-by: Srikar Dronamraju <[email protected]> Tested-by: Satheesh Rajendran <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d0ffdee commit 4bce545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/include/asm/topology.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int get_physical_package_id(int cpu);
122122
#endif
123123

124124
#define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu))
125-
#define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu))
125+
#define topology_core_cpumask(cpu) (cpu_cpu_mask(cpu))
126126
#define topology_core_id(cpu) (cpu_to_core_id(cpu))
127127

128128
#endif

0 commit comments

Comments
 (0)