Skip to content

Commit

Permalink
sh: Stub in cpu_to_node() and friends for NUMA build.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed May 8, 2008
1 parent 4370fe1 commit 1e0f50a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/asm-sh/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
.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>
Expand Down

0 comments on commit 1e0f50a

Please sign in to comment.