--- zzzz-none-000/linux-3.10.107/arch/mips/include/asm/topology.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/arch/mips/include/asm/topology.h 2021-11-10 11:53:54.000000000 +0000 @@ -4,6 +4,7 @@ * for more details. * * Copyright (C) 2007 by Ralf Baechle + * Copyright (C) 2012 by Leonid Yegoshin */ #ifndef __ASM_TOPOLOGY_H #define __ASM_TOPOLOGY_H @@ -12,6 +13,10 @@ #ifdef CONFIG_SMP #define smt_capable() (smp_num_siblings > 1) +#define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) +#define topology_core_id(cpu) (cpu_data[cpu].core) +#define topology_core_cpumask(cpu) ((void)(cpu), cpu_online_mask) +#define topology_physical_package_id(cpu) ((void)cpu, 0) #endif #endif /* __ASM_TOPOLOGY_H */