18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 38c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 48c2ecf20Sopenharmony_ci * for more details. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Copyright (C) 2007 by Ralf Baechle 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci#ifndef __ASM_TOPOLOGY_H 98c2ecf20Sopenharmony_ci#define __ASM_TOPOLOGY_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <topology.h> 128c2ecf20Sopenharmony_ci#include <linux/smp.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#ifdef CONFIG_SMP 158c2ecf20Sopenharmony_ci#define topology_physical_package_id(cpu) (cpu_data[cpu].package) 168c2ecf20Sopenharmony_ci#define topology_core_id(cpu) (cpu_core(&cpu_data[cpu])) 178c2ecf20Sopenharmony_ci#define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) 188c2ecf20Sopenharmony_ci#define topology_sibling_cpumask(cpu) (&cpu_sibling_map[cpu]) 198c2ecf20Sopenharmony_ci#endif 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif /* __ASM_TOPOLOGY_H */ 22