18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2020 Loongson Technology Corporation Limited 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci#ifndef __ASM_TOPOLOGY_H 68c2ecf20Sopenharmony_ci#define __ASM_TOPOLOGY_H 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#include <topology.h> 98c2ecf20Sopenharmony_ci#include <linux/smp.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifdef CONFIG_SMP 128c2ecf20Sopenharmony_ci#define topology_physical_package_id(cpu) (cpu_data[cpu].package) 138c2ecf20Sopenharmony_ci#define topology_core_id(cpu) (cpu_data[cpu].core) 148c2ecf20Sopenharmony_ci#define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) 158c2ecf20Sopenharmony_ci#define topology_sibling_cpumask(cpu) (&cpu_sibling_map[cpu]) 168c2ecf20Sopenharmony_ci#endif 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#include <asm-generic/topology.h> 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cistatic inline void arch_fix_phys_package_id(int num, u32 slot) { } 218c2ecf20Sopenharmony_ci#endif /* __ASM_TOPOLOGY_H */ 22