Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[POWERPC] Add the thread_siblings files to sysfs

This adds the /sys/devices/system/cpu/*/topology/thread_siblings
files on powerpc. These files are already available on other
architectures.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Stephen Rothwell and committed by
Paul Mackerras
056f4faa 45c99533

+7 -1
+7 -1
include/asm-powerpc/topology.h
··· 96 96 97 97 #ifdef CONFIG_SMP 98 98 #include <asm/cputable.h> 99 - #define smt_capable() (cpu_has_feature(CPU_FTR_SMT)) 99 + #define smt_capable() (cpu_has_feature(CPU_FTR_SMT)) 100 + 101 + #ifdef CONFIG_PPC64 102 + #include <asm/smp.h> 103 + 104 + #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu]) 105 + #endif 100 106 #endif 101 107 102 108 #endif /* __KERNEL__ */