diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 6bf217da9d8f..53af7841018a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1341,9 +1341,6 @@ static void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev) | |||
1341 | 1341 | ||
1342 | void __netif_schedule(struct Qdisc *q) | 1342 | void __netif_schedule(struct Qdisc *q) |
1343 | { | 1343 | { |
1344 | if (WARN_ON_ONCE(q == &noop_qdisc)) | ||
1345 | return; | ||
1346 | |||
1347 | if (!test_and_set_bit(__QDISC_STATE_SCHED, &q->state)) { | 1344 | if (!test_and_set_bit(__QDISC_STATE_SCHED, &q->state)) { |
1348 | struct softnet_data *sd; | 1345 | struct softnet_data *sd; |
1349 | unsigned long flags; | 1346 | unsigned long flags; |
@@ -2398,7 +2395,7 @@ out: | |||
2398 | */ | 2395 | */ |
2399 | if (!cpus_empty(net_dma.channel_mask)) { | 2396 | if (!cpus_empty(net_dma.channel_mask)) { |
2400 | int chan_idx; | 2397 | int chan_idx; |
2401 | for_each_cpu_mask(chan_idx, net_dma.channel_mask) { | 2398 | for_each_cpu_mask_nr(chan_idx, net_dma.channel_mask) { |
2402 | struct dma_chan *chan = net_dma.channels[chan_idx]; | 2399 | struct dma_chan *chan = net_dma.channels[chan_idx]; |
2403 | if (chan) | 2400 | if (chan) |
2404 | dma_async_memcpy_issue_pending(chan); | 2401 | dma_async_memcpy_issue_pending(chan); |
@@ -4533,7 +4530,7 @@ static void net_dma_rebalance(struct net_dma *net_dma) | |||
4533 | i = 0; | 4530 | i = 0; |
4534 | cpu = first_cpu(cpu_online_map); | 4531 | cpu = first_cpu(cpu_online_map); |
4535 | 4532 | ||
4536 | for_each_cpu_mask(chan_idx, net_dma->channel_mask) { | 4533 | for_each_cpu_mask_nr(chan_idx, net_dma->channel_mask) { |
4537 | chan = net_dma->channels[chan_idx]; | 4534 | chan = net_dma->channels[chan_idx]; |
4538 | 4535 | ||
4539 | n = ((num_online_cpus() / cpus_weight(net_dma->channel_mask)) | 4536 | n = ((num_online_cpus() / cpus_weight(net_dma->channel_mask)) |