Commit 0e12f848 authored by Mike Travis's avatar Mike Travis Committed by Thomas Gleixner

net: use performance variant for_each_cpu_mask_nr

Change references from for_each_cpu_mask to for_each_cpu_mask_nr
where appropriate
Reviewed-by: default avatarPaul Jackson <pj@sgi.com>
Reviewed-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarMike Travis <travis@sgi.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 6d6a4360
...@@ -2239,7 +2239,7 @@ static void net_rx_action(struct softirq_action *h) ...@@ -2239,7 +2239,7 @@ static void net_rx_action(struct softirq_action *h)
*/ */
if (!cpus_empty(net_dma.channel_mask)) { if (!cpus_empty(net_dma.channel_mask)) {
int chan_idx; int chan_idx;
for_each_cpu_mask(chan_idx, net_dma.channel_mask) { for_each_cpu_mask_nr(chan_idx, net_dma.channel_mask) {
struct dma_chan *chan = net_dma.channels[chan_idx]; struct dma_chan *chan = net_dma.channels[chan_idx];
if (chan) if (chan)
dma_async_memcpy_issue_pending(chan); dma_async_memcpy_issue_pending(chan);
...@@ -4300,7 +4300,7 @@ static void net_dma_rebalance(struct net_dma *net_dma) ...@@ -4300,7 +4300,7 @@ static void net_dma_rebalance(struct net_dma *net_dma)
i = 0; i = 0;
cpu = first_cpu(cpu_online_map); cpu = first_cpu(cpu_online_map);
for_each_cpu_mask(chan_idx, net_dma->channel_mask) { for_each_cpu_mask_nr(chan_idx, net_dma->channel_mask) {
chan = net_dma->channels[chan_idx]; chan = net_dma->channels[chan_idx];
n = ((num_online_cpus() / cpus_weight(net_dma->channel_mask)) n = ((num_online_cpus() / cpus_weight(net_dma->channel_mask))
......
...@@ -497,7 +497,7 @@ static void iucv_setmask_up(void) ...@@ -497,7 +497,7 @@ static void iucv_setmask_up(void)
/* Disable all cpu but the first in cpu_irq_cpumask. */ /* Disable all cpu but the first in cpu_irq_cpumask. */
cpumask = iucv_irq_cpumask; cpumask = iucv_irq_cpumask;
cpu_clear(first_cpu(iucv_irq_cpumask), cpumask); cpu_clear(first_cpu(iucv_irq_cpumask), cpumask);
for_each_cpu_mask(cpu, cpumask) for_each_cpu_mask_nr(cpu, cpumask)
smp_call_function_single(cpu, iucv_block_cpu, NULL, 0, 1); smp_call_function_single(cpu, iucv_block_cpu, NULL, 0, 1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment