aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/topology.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-05-08 00:40:17 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-05-08 00:40:17 -0400
commit1e0f50ae11ab5838009994a3266accc1319c90d9 (patch)
tree2a13683d11196e8ade010347ec481f24b6a763b5 /include/asm-sh/topology.h
parent4370fe1c06ffa251b63b12a41e2599037a4b7f87 (diff)
sh: Stub in cpu_to_node() and friends for NUMA build.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/topology.h')
-rw-r--r--include/asm-sh/topology.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-sh/topology.h b/include/asm-sh/topology.h
index 34cdb28e8f44..95f0085e098a 100644
--- a/include/asm-sh/topology.h
+++ b/include/asm-sh/topology.h
@@ -29,6 +29,17 @@
29 .nr_balance_failed = 0, \ 29 .nr_balance_failed = 0, \
30} 30}
31 31
32#define cpu_to_node(cpu) ((void)(cpu),0)
33#define parent_node(node) ((void)(node),0)
34
35#define node_to_cpumask(node) ((void)node, cpu_online_map)
36#define node_to_first_cpu(node) ((void)(node),0)
37
38#define pcibus_to_node(bus) ((void)(bus), -1)
39#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
40 CPU_MASK_ALL : \
41 node_to_cpumask(pcibus_to_node(bus)) \
42 )
32#endif 43#endif
33 44
34#include <asm-generic/topology.h> 45#include <asm-generic/topology.h>