Skip to contentSkip to conversation

MIPS: Netlogic: Use MIPS topology.h

PATCH New Jayachandran C 1 participant 1 message Aug 28, 2014 1 message not in the archive MIPS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): Message-ID: <[email protected]

#1 lore raw

PATCH 1/1 MIPS: Netlogic: Use MIPS topology.h

commit 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.

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
deleted file mode 100644
index 0eb43c8..0000000
@@ -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
index 4fde7ac..f23fe22 100644
@@ -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