Commit 1e0f50ae authored by Paul Mundt's avatar Paul Mundt

sh: Stub in cpu_to_node() and friends for NUMA build.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 4370fe1c
...@@ -29,6 +29,17 @@ ...@@ -29,6 +29,17 @@
.nr_balance_failed = 0, \ .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 #endif
#include <asm-generic/topology.h> #include <asm-generic/topology.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment