Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9fab7e4 authored by Jayachandran C's avatar Jayachandran C Committed by Ralf Baechle
Browse files

MIPS: Netlogic: Fix uniprocessor compilation



The macros in topology.h need CONFIG_SMP, and the uniprocessor compilation
fails due to this. Wrap the macros in an ifdef so that uniprocessor works.

Signed-off-by: default avatarJayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/6863/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a91796a9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -10,10 +10,12 @@

#include <asm/mach-netlogic/multi-node.h>

#ifdef CONFIG_SMP
#define topology_physical_package_id(cpu)	cpu_to_node(cpu)
#define topology_core_id(cpu)	(cpu_logical_map(cpu) / NLM_THREADS_PER_CORE)
#define topology_thread_cpumask(cpu)		(&cpu_sibling_map[cpu])
#define topology_core_cpumask(cpu)	cpumask_of_node(cpu_to_node(cpu))
#endif

#include <asm-generic/topology.h>