]> err.no Git - linux-2.6/commitdiff
sh: Stub in cpu_to_node() and friends for NUMA build.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 8 May 2008 04:40:17 +0000 (13:40 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 8 May 2008 04:40:17 +0000 (13:40 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/topology.h

index 34cdb28e8f4429c2deb7ed7e96ec9e07c50bbd98..95f0085e098a6859d746581b3b4b616439062854 100644 (file)
        .nr_balance_failed      = 0,                    \
 }
 
+#define cpu_to_node(cpu)       ((void)(cpu),0)
+#define parent_node(node)      ((void)(node),0)
+
+#define node_to_cpumask(node)  ((void)node, cpu_online_map)
+#define node_to_first_cpu(node)        ((void)(node),0)
+
+#define pcibus_to_node(bus)    ((void)(bus), -1)
+#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
+                                       CPU_MASK_ALL : \
+                                       node_to_cpumask(pcibus_to_node(bus)) \
+                               )
 #endif
 
 #include <asm-generic/topology.h>