FILE
topology.h
File preview with syntax highlighting.
linux-6.19.14/arch/mips/include/asm/topology.h
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 */ 8#ifndef __ASM_TOPOLOGY_H 9#define __ASM_TOPOLOGY_H 10 11#include <topology.h> 12#include <linux/smp.h> 13 14#ifdef CONFIG_SMP 15#define topology_physical_package_id(cpu) (cpu_data[cpu].package) 16#define topology_core_id(cpu) (cpu_core(&cpu_data[cpu])) 17#define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) 18#define topology_sibling_cpumask(cpu) (&cpu_sibling_map[cpu]) 19 20extern struct cpumask __cpu_primary_thread_mask; 21#define cpu_primary_thread_mask ((const struct cpumask *)&__cpu_primary_thread_mask) 22#endif 23 24#endif /* __ASM_TOPOLOGY_H */
~/
Read-only file preview.