1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * This file is subject to the terms and conditions of the GNU General Public 3*4882a593Smuzhiyun * License. See the file "COPYING" in the main directory of this archive 4*4882a593Smuzhiyun * for more details. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Copyright (C) 2007 by Ralf Baechle 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun #ifndef __ASM_TOPOLOGY_H 9*4882a593Smuzhiyun #define __ASM_TOPOLOGY_H 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #include <topology.h> 12*4882a593Smuzhiyun #include <linux/smp.h> 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun #ifdef CONFIG_SMP 15*4882a593Smuzhiyun #define topology_physical_package_id(cpu) (cpu_data[cpu].package) 16*4882a593Smuzhiyun #define topology_core_id(cpu) (cpu_core(&cpu_data[cpu])) 17*4882a593Smuzhiyun #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) 18*4882a593Smuzhiyun #define topology_sibling_cpumask(cpu) (&cpu_sibling_map[cpu]) 19*4882a593Smuzhiyun #endif 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun #endif /* __ASM_TOPOLOGY_H */ 22