]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cpumask: sh: Introduce cpumask_of_{node,pcibus} to replace {node,pcibus}_to_cpumask
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 26 Dec 2008 11:53:39 +0000 (22:23 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 26 Dec 2008 11:53:39 +0000 (22:23 +1030)
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>
arch/sh/include/asm/topology.h

index 95f0085e098a6859d746581b3b4b616439062854..9aa160d0efe5629ea69b0f94b81f1a4416d90129 100644 (file)
@@ -33,6 +33,7 @@
 #define parent_node(node)      ((void)(node),0)
 
 #define node_to_cpumask(node)  ((void)node, cpu_online_map)
+#define cpumask_of_node(node)  ((void)node, cpu_online_mask)
 #define node_to_first_cpu(node)        ((void)(node),0)
 
 #define pcibus_to_node(bus)    ((void)(bus), -1)