1 /* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2007 by Ralf Baechle 7 * Copyright (C) 2012 by Leonid Yegoshin 8 */ 9 #ifndef __ASM_TOPOLOGY_H 10 #define __ASM_TOPOLOGY_H 11 12 #include <topology.h> 13 14 #ifdef CONFIG_SMP 15 #define smt_capable() (smp_num_siblings > 1) 16 #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) 17 #define topology_core_id(cpu) (cpu_data[cpu].core) 18 #define topology_core_cpumask(cpu) ((void)(cpu), cpu_online_mask) 19 #define topology_physical_package_id(cpu) ((void)cpu, 0) 20 #endif 21 22 #endif /* __ASM_TOPOLOGY_H */ 23