1384740dcSRalf Baechle /* 2384740dcSRalf Baechle * This file is subject to the terms and conditions of the GNU General Public 3384740dcSRalf Baechle * License. See the file "COPYING" in the main directory of this archive 4384740dcSRalf Baechle * for more details. 5384740dcSRalf Baechle * 6384740dcSRalf Baechle * Copyright (C) 2007 by Ralf Baechle 7384740dcSRalf Baechle */ 8384740dcSRalf Baechle #ifndef __ASM_TOPOLOGY_H 9384740dcSRalf Baechle #define __ASM_TOPOLOGY_H 10384740dcSRalf Baechle 11384740dcSRalf Baechle #include <topology.h> 12dc578706SHuacai Chen #include <linux/smp.h> 13dc578706SHuacai Chen 14dc578706SHuacai Chen #ifdef CONFIG_SMP 15dc578706SHuacai Chen #define topology_physical_package_id(cpu) (cpu_data[cpu].package) 16f875a832SPaul Burton #define topology_core_id(cpu) (cpu_core(&cpu_data[cpu])) 17dc578706SHuacai Chen #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) 1806931e62SBartosz Golaszewski #define topology_sibling_cpumask(cpu) (&cpu_sibling_map[cpu]) 19dc578706SHuacai Chen #endif 20384740dcSRalf Baechle 21384740dcSRalf Baechle #endif /* __ASM_TOPOLOGY_H */ 22