mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
The correct position is topology.h, and this fix macros redefinition problems for Netlogic. [[email protected]: Fix build - the original patch broke most configurations.] Signed-off-by: Huacai Chen <[email protected]> Cc: Jayachandran C. <[email protected]> Cc: John Crispin <[email protected]> Cc: Steven J. Hill <[email protected]> Cc: Aurelien Jarno <[email protected]> Cc: [email protected] Cc: Fuxin Zhang <[email protected]> Cc: Zhangjin Wu <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/7575/ Signed-off-by: Ralf Baechle <[email protected]>
22 lines
612 B
C
22 lines
612 B
C
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2007 by Ralf Baechle
|
|
*/
|
|
#ifndef __ASM_TOPOLOGY_H
|
|
#define __ASM_TOPOLOGY_H
|
|
|
|
#include <topology.h>
|
|
#include <linux/smp.h>
|
|
|
|
#ifdef CONFIG_SMP
|
|
#define topology_physical_package_id(cpu) (cpu_data[cpu].package)
|
|
#define topology_core_id(cpu) (cpu_data[cpu].core)
|
|
#define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
|
|
#define topology_thread_cpumask(cpu) (&cpu_sibling_map[cpu])
|
|
#endif
|
|
|
|
#endif /* __ASM_TOPOLOGY_H */
|