MIPS: Move CPU topology macros to topology.h
PATCH v2 1/1 MIPS: Move CPU topology macros to topology.h
The correct position is topology.h, and this fix macros redefinition problems for Netlogic.
V2: remove unnecessary #ifndefs.
Signed-off-by Huacai Chen <[email protected]>
Cc Jayachandran C. <[email protected]>
--- arch/mips/include/asm/smp.h | 5 ----- arch/mips/include/asm/topology.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-)
arch/mips/include/asm/smp.h +0 -5
@@ -37,11 +37,6 @@ extern int __cpu_logical_map[NR_CPUS];#define NO_PROC_ID (-1) -#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]) -#define SMP_RESCHEDULE_YOURSELF 0x1/* XXX braindead */ #define SMP_CALL_FUNCTION 0x2/* Octeon - Tell another core to flush its icache */
arch/mips/include/asm/topology.h +5 -0
@@ -10,4 +10,9 @@#include <topology.h> +#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 /* __ASM_TOPOLOGY_H */
Signature · 1 line
1.7.7.3