--- zzzz-none-000/linux-3.10.107/arch/mips/include/asm/topology.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/mips/include/asm/topology.h 2021-02-04 17:41:59.000000000 +0000 @@ -9,9 +9,13 @@ #define __ASM_TOPOLOGY_H #include +#include #ifdef CONFIG_SMP -#define smt_capable() (smp_num_siblings > 1) +#define topology_physical_package_id(cpu) (cpu_data[cpu].package) +#define topology_core_id(cpu) (cpu_data[cpu].core) +#define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) +#define topology_sibling_cpumask(cpu) (&cpu_sibling_map[cpu]) #endif #endif /* __ASM_TOPOLOGY_H */