Commit 051adc81 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller

[NET]: Use local_softirq_pending instead of softirq_pending in netif_rx_ni

Some architectures can optimize local_softirq_pending much better than
softirq_pending(smp_processor_id()), and for all others the former is
just a macro expanding to the later.

Also this is the last use of softirq_pending() in common code, once this
is in we can soon kill the notation of beeing able to query other cpus
softirq pending count.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d489b794
......@@ -1493,7 +1493,7 @@ int netif_rx_ni(struct sk_buff *skb)
preempt_disable();
err = netif_rx(skb);
if (softirq_pending(smp_processor_id()))
if (local_softirq_pending())
do_softirq();
preempt_enable();
......
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