aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/mach-netlogic/multi-node.h
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2013-12-21 06:22:17 -0500
committerRalf Baechle <ralf@linux-mips.org>2014-01-24 16:39:47 -0500
commitcfec4c63f5034160ab4a4654c05dd6241f51b282 (patch)
tree43891c1e5800e7bcd594f583ae8f48630182cb39 /arch/mips/include/asm/mach-netlogic/multi-node.h
parented8dfc46e0099540cb923f61bca885b460f1365e (diff)
MIPS: Netlogic: Add macro for node present
Add macro nlm_node_present() that can be used to check if a node is present in a multi-chip configuration. This can be used even when NUMA is not enabled. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6272/
Diffstat (limited to 'arch/mips/include/asm/mach-netlogic/multi-node.h')
-rw-r--r--arch/mips/include/asm/mach-netlogic/multi-node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-netlogic/multi-node.h b/arch/mips/include/asm/mach-netlogic/multi-node.h
index b3d91e0c10dd..beeb36b9f9f8 100644
--- a/arch/mips/include/asm/mach-netlogic/multi-node.h
+++ b/arch/mips/include/asm/mach-netlogic/multi-node.h
@@ -63,6 +63,8 @@ struct nlm_soc_info {
63 63
64extern struct nlm_soc_info nlm_nodes[NLM_NR_NODES]; 64extern struct nlm_soc_info nlm_nodes[NLM_NR_NODES];
65#define nlm_get_node(i) (&nlm_nodes[i]) 65#define nlm_get_node(i) (&nlm_nodes[i])
66#define nlm_node_present(n) ((n) >= 0 && (n) < NLM_NR_NODES && \
67 nlm_get_node(n)->coremask != 0)
66#ifdef CONFIG_CPU_XLR 68#ifdef CONFIG_CPU_XLR
67#define nlm_current_node() (&nlm_nodes[0]) 69#define nlm_current_node() (&nlm_nodes[0])
68#else 70#else