summaryrefslogtreecommitdiff
path: root/include/linux/topology.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-03-13 07:19:46 +0300
committerRusty Russell <rusty@rustcorp.com.au>2009-03-13 07:19:46 +0300
commita70f730282019f487aa33a84e5ac9a5e89c5abd0 (patch)
treee6891ec5db5383c6f39617d0cc9671e1a0d1a988 /include/linux/topology.h
parentc69fc56de1df5769f2ec69c915c7ad5afe63804c (diff)
downloadlinux-a70f730282019f487aa33a84e5ac9a5e89c5abd0.tar.xz
cpumask: replace node_to_cpumask with cpumask_of_node.
Impact: cleanup node_to_cpumask (and the blecherous node_to_cpumask_ptr which contained a declaration) are replaced now everyone implements cpumask_of_node. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/topology.h')
-rw-r--r--include/linux/topology.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h
index a16b9e06f2e5..16b7d6896ce9 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -38,11 +38,7 @@
#endif
#ifndef nr_cpus_node
-#define nr_cpus_node(node) \
- ({ \
- node_to_cpumask_ptr(__tmp__, node); \
- cpus_weight(*__tmp__); \
- })
+#define nr_cpus_node(node) cpumask_weight(cpumask_of_node(node))
#endif
#define for_each_node_with_cpus(node) \