MIPS: Netlogic: Fix uniprocessor compilation
authorJayachandran C <jchandra@broadcom.com>
Tue, 29 Apr 2014 14:37:41 +0000 (20:07 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 30 May 2014 14:44:55 +0000 (16:44 +0200)
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: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/6863/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-netlogic/topology.h

index 0da99fa11c3830d90baf08ac88df3ea62befd404..ceeb1f5e7129b0692a088d673444359106bb264d 100644 (file)
 
 #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>