diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 4 | ||||
-rw-r--r-- | net/iucv/iucv.c | 2 | ||||
-rw-r--r-- | net/sunrpc/svc.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 821cb1628e5e..df5520a60b90 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2261,7 +2261,7 @@ out: | |||
2261 | */ | 2261 | */ |
2262 | if (!cpus_empty(net_dma.channel_mask)) { | 2262 | if (!cpus_empty(net_dma.channel_mask)) { |
2263 | int chan_idx; | 2263 | int chan_idx; |
2264 | for_each_cpu_mask(chan_idx, net_dma.channel_mask) { | 2264 | for_each_cpu_mask_nr(chan_idx, net_dma.channel_mask) { |
2265 | struct dma_chan *chan = net_dma.channels[chan_idx]; | 2265 | struct dma_chan *chan = net_dma.channels[chan_idx]; |
2266 | if (chan) | 2266 | if (chan) |
2267 | dma_async_memcpy_issue_pending(chan); | 2267 | dma_async_memcpy_issue_pending(chan); |
@@ -4322,7 +4322,7 @@ static void net_dma_rebalance(struct net_dma *net_dma) | |||
4322 | i = 0; | 4322 | i = 0; |
4323 | cpu = first_cpu(cpu_online_map); | 4323 | cpu = first_cpu(cpu_online_map); |
4324 | 4324 | ||
4325 | for_each_cpu_mask(chan_idx, net_dma->channel_mask) { | 4325 | for_each_cpu_mask_nr(chan_idx, net_dma->channel_mask) { |
4326 | chan = net_dma->channels[chan_idx]; | 4326 | chan = net_dma->channels[chan_idx]; |
4327 | 4327 | ||
4328 | n = ((num_online_cpus() / cpus_weight(net_dma->channel_mask)) | 4328 | n = ((num_online_cpus() / cpus_weight(net_dma->channel_mask)) |
diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index cc34ac769a3c..411b339a0c8a 100644 --- a/net/iucv/iucv.c +++ b/net/iucv/iucv.c | |||
@@ -497,7 +497,7 @@ static void iucv_setmask_up(void) | |||
497 | /* Disable all cpu but the first in cpu_irq_cpumask. */ | 497 | /* Disable all cpu but the first in cpu_irq_cpumask. */ |
498 | cpumask = iucv_irq_cpumask; | 498 | cpumask = iucv_irq_cpumask; |
499 | cpu_clear(first_cpu(iucv_irq_cpumask), cpumask); | 499 | cpu_clear(first_cpu(iucv_irq_cpumask), cpumask); |
500 | for_each_cpu_mask(cpu, cpumask) | 500 | for_each_cpu_mask_nr(cpu, cpumask) |
501 | smp_call_function_single(cpu, iucv_block_cpu, NULL, 1); | 501 | smp_call_function_single(cpu, iucv_block_cpu, NULL, 1); |
502 | } | 502 | } |
503 | 503 | ||
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 01c7e311b904..d43cf8ddff67 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
@@ -603,7 +603,7 @@ __svc_create_thread(svc_thread_fn func, struct svc_serv *serv, | |||
603 | error = kernel_thread((int (*)(void *)) func, rqstp, 0); | 603 | error = kernel_thread((int (*)(void *)) func, rqstp, 0); |
604 | 604 | ||
605 | if (have_oldmask) | 605 | if (have_oldmask) |
606 | set_cpus_allowed(current, oldmask); | 606 | set_cpus_allowed_ptr(current, &oldmask); |
607 | 607 | ||
608 | if (error < 0) | 608 | if (error < 0) |
609 | goto out_thread; | 609 | goto out_thread; |