diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-26 06:53:39 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-26 06:53:39 -0500 |
commit | 7479a2939df4957ba794cce814379b6d10914bdc (patch) | |
tree | 6f63adc957e142a6f24faf66922a24057dc5d7d5 /arch/sh | |
parent | 96d76a74870d5f11ce2abdd09a8dcdc401d714d1 (diff) |
cpumask: sh: Introduce cpumask_of_{node,pcibus} to replace {node,pcibus}_to_cpumask
Impact: New APIs
The old node_to_cpumask/node_to_pcibus returned a cpumask_t: these
return a pointer to a struct cpumask. Part of removing cpumasks from
the stack.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/topology.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/topology.h b/arch/sh/include/asm/topology.h index 95f0085e098a..9aa160d0efe5 100644 --- a/arch/sh/include/asm/topology.h +++ b/arch/sh/include/asm/topology.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #define parent_node(node) ((void)(node),0) | 33 | #define parent_node(node) ((void)(node),0) |
34 | 34 | ||
35 | #define node_to_cpumask(node) ((void)node, cpu_online_map) | 35 | #define node_to_cpumask(node) ((void)node, cpu_online_map) |
36 | #define cpumask_of_node(node) ((void)node, cpu_online_mask) | ||
36 | #define node_to_first_cpu(node) ((void)(node),0) | 37 | #define node_to_first_cpu(node) ((void)(node),0) |
37 | 38 | ||
38 | #define pcibus_to_node(bus) ((void)(bus), -1) | 39 | #define pcibus_to_node(bus) ((void)(bus), -1) |