Skip to content

Commit 131c82b

Browse files
srikardmpe
authored andcommitted
Revert "powerpc/topology: Update topology_core_cpumask"
Now that cpu_core_mask has been reintroduced, lets revert commit 4bce545 ("powerpc/topology: Update topology_core_cpumask") Post this commit, lscpu should reflect topologies as requested by a user when a QEMU instance is launched with NUMA spanning multiple sockets. Reported-by: Daniel Henrique Barboza <[email protected]> Signed-off-by: Srikar Dronamraju <[email protected]> Tested-by: Daniel Henrique Barboza <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c47f892 commit 131c82b

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
@@ -126,7 +126,7 @@ static inline int cpu_to_coregroup_id(int cpu)
126126
#define topology_physical_package_id(cpu) (cpu_to_chip_id(cpu))
127127

128128
#define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu))
129-
#define topology_core_cpumask(cpu) (cpu_cpu_mask(cpu))
129+
#define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu))
130130
#define topology_core_id(cpu) (cpu_to_core_id(cpu))
131131

132132
#endif

0 commit comments

Comments
 (0)