diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-01-11 05:58:08 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-11 18:12:49 (GMT) |
commit | fbd59a8d1f7cf325fdb6828659f1fb76631e87b3 (patch) | |
tree | ccb7bbf70ef6e2e08e8ae83964b09fbdcf74808a /drivers/net/sfc | |
parent | 7f7ace0cda64c99599c23785f8979a072e118058 (diff) | |
download | linux-fbd59a8d1f7cf325fdb6828659f1fb76631e87b3.tar.xz |
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 'drivers/net/sfc')
-rw-r--r-- | drivers/net/sfc/efx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 7673fd9..f2e56ce 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c @@ -863,8 +863,8 @@ static int efx_wanted_rx_queues(void) for_each_online_cpu(cpu) { if (!cpu_isset(cpu, core_mask)) { ++count; - cpus_or(core_mask, core_mask, - topology_core_siblings(cpu)); + cpumask_or(&core_mask, &core_mask, + topology_core_cpumask(cpu)); } } |