diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/loopback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 93fbea1c9271..82c10dec1b5a 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c | |||
@@ -153,14 +153,14 @@ static int loopback_xmit(struct sk_buff *skb, struct net_device *dev) | |||
153 | #endif | 153 | #endif |
154 | dev->last_rx = jiffies; | 154 | dev->last_rx = jiffies; |
155 | 155 | ||
156 | lb_stats = &per_cpu(pcpu_lstats, get_cpu()); | 156 | /* it's OK to use __get_cpu_var() because BHs are off */ |
157 | lb_stats = &__get_cpu_var(pcpu_lstats); | ||
157 | lb_stats->bytes += skb->len; | 158 | lb_stats->bytes += skb->len; |
158 | lb_stats->packets++; | 159 | lb_stats->packets++; |
159 | put_cpu(); | ||
160 | 160 | ||
161 | netif_rx(skb); | 161 | netif_rx(skb); |
162 | 162 | ||
163 | return(0); | 163 | return 0; |
164 | } | 164 | } |
165 | 165 | ||
166 | static struct net_device_stats loopback_stats; | 166 | static struct net_device_stats loopback_stats; |