xref: /kernel/linux/linux-6.6/arch/mips/include/asm/topology.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/mips/include/asm/
162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
362306a36Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
462306a36Sopenharmony_ci * for more details.
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * Copyright (C) 2007 by Ralf Baechle
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci#ifndef __ASM_TOPOLOGY_H
962306a36Sopenharmony_ci#define __ASM_TOPOLOGY_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include <topology.h>
1262306a36Sopenharmony_ci#include <linux/smp.h>
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#ifdef CONFIG_SMP
1562306a36Sopenharmony_ci#define topology_physical_package_id(cpu)	(cpu_data[cpu].package)
1662306a36Sopenharmony_ci#define topology_core_id(cpu)			(cpu_core(&cpu_data[cpu]))
1762306a36Sopenharmony_ci#define topology_core_cpumask(cpu)		(&cpu_core_map[cpu])
1862306a36Sopenharmony_ci#define topology_sibling_cpumask(cpu)		(&cpu_sibling_map[cpu])
1962306a36Sopenharmony_ci#endif
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#endif /* __ASM_TOPOLOGY_H */
22

Indexes created Thu Nov 07 10:32:03 CST 2024