Skip to content

Commit

Permalink
cpumask: sh: Introduce cpumask_of_{node,pcibus} to replace {node,pcib…
Browse files Browse the repository at this point in the history
…us}_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>
  • Loading branch information
Rusty Russell committed Dec 26, 2008
1 parent 96d76a7 commit 7479a29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sh/include/asm/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7479a29

Please sign in to comment.