| To: | davem@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH] use local_softirq_pending instead of softirq_pending in netif_rx_ni |
| From: | Christoph Hellwig <hch@xxxxxx> |
| Date: | Sun, 14 Nov 2004 11:38:46 +0100 |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.3.28i |
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.
--- 1.174/net/core/dev.c 2004-11-10 01:12:00 +01:00
+++ edited/net/core/dev.c 2004-11-14 11:35:19 +01:00
@@ -1470,7 +1470,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();
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Options for forcedeth Linux kernel module, Andreas Sindermann |
|---|---|
| Next by Date: | Re: Options for forcedeth Linux kernel module, Francois Romieu |
| Previous by Thread: | [PATCH] kill drivers/net/net_init.c, Christoph Hellwig |
| Next by Thread: | Re: [PATCH] use local_softirq_pending instead of softirq_pending in netif_rx_ni, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |