diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-01-10 21:58:08 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-11 19:12:49 +0100 |
commit | fbd59a8d1f7cf325fdb6828659f1fb76631e87b3 (patch) | |
tree | ccb7bbf70ef6e2e08e8ae83964b09fbdcf74808a /include/linux/topology.h | |
parent | 7f7ace0cda64c99599c23785f8979a072e118058 (diff) | |
download | linux-fbd59a8d1f7cf325fdb6828659f1fb76631e87b3.tar.gz linux-fbd59a8d1f7cf325fdb6828659f1fb76631e87b3.tar.bz2 linux-fbd59a8d1f7cf325fdb6828659f1fb76631e87b3.zip |
cpumask: Use topology_core_cpumask()/topology_thread_cpumask()
Impact: reduce stack usage, use new cpumask API.
This actually uses topology_core_cpumask() and
topology_thread_cpumask(), removing the only users of
topology_core_siblings() and topology_thread_siblings()
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Cc: linux-net-drivers@solarflare.com
Diffstat (limited to 'include/linux/topology.h')
-rw-r--r-- | include/linux/topology.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h index e632d29f0544..a16b9e06f2e5 100644 --- a/include/linux/topology.h +++ b/include/linux/topology.h @@ -193,5 +193,11 @@ int arch_update_cpu_topology(void); #ifndef topology_core_siblings #define topology_core_siblings(cpu) cpumask_of_cpu(cpu) #endif +#ifndef topology_thread_cpumask +#define topology_thread_cpumask(cpu) cpumask_of(cpu) +#endif +#ifndef topology_core_cpumask +#define topology_core_cpumask(cpu) cpumask_of(cpu) +#endif #endif /* _LINUX_TOPOLOGY_H */ |