summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2004-11-17 22:13:50 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2004-11-17 22:13:50 -0800
commit051adc81602dbc3aa84b3ba9622c5dca2d8e144f (patch)
tree73f6a940cebbcebba9af73cded1158dba0e394b1 /net/core/dev.c
parentd489b7942cac1bc4854cb80b645f989d570a2e3f (diff)
[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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 54f500639000..3ee9e1080681 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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();