MIPS: Netlogic: Use MIPS topology.h
PATCH 1/1 MIPS: Netlogic: Use MIPS topology.h
In reply to a message not in the archivecommit bbbf6d8768f5 ("MIPS: NL: Fix nlm_xlp_defconfig build error") removed topology related macros from mach-netlogic/topology.h, but did not setup the current_cpu_data.package.
Fix this by setting the package field in netlogic/common/smp.c. Also mach-netlogic/topology.h can be removed now as it no longer needs to override mips topology definitions.
Signed-off-by Jayachandran C <[email protected]>
Cc Ralf Baechle <[email protected]>
Cc Guenter Roeck <[email protected]>
Cc Huacai Chen <[email protected]>
---
[ Ralf: This is for 3.17, fixes an issue which went into -rc1, and was fixed
partially in -rc2]
arch/mips/include/asm/mach-netlogic/topology.h | 15 --------------- arch/mips/netlogic/common/smp.c | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 arch/mips/include/asm/mach-netlogic/topology.h
arch/mips/include/asm/mach-netlogic/topology.h deleted +0 -15
@@ -1,15 +0,0 @@ -/* -* 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) 2013 Broadcom Corporation -*/ -#ifndef _ASM_MACH_NETLOGIC_TOPOLOGY_H -#define _ASM_MACH_NETLOGIC_TOPOLOGY_H - -#include <asm/mach-netlogic/multi-node.h> - -#include <asm-generic/topology.h> - -#endif /* _ASM_MACH_NETLOGIC_TOPOLOGY_H */
arch/mips/netlogic/common/smp.c +1 -0
@@ -120,6 +120,7 @@ static void nlm_init_secondary(void) hwtid =hard_smp_processor_id (); current_cpu_data.core = hwtid /NLM_THREADS_PER_CORE ; + current_cpu_data.package =nlm_cpuid_to_node (hwtid);nlm_percpu_init (hwtid);nlm_smp_irq_init (hwtid); }
Signature · 1 line
1.9.1