aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index a1d109590da4..4c06cc0f194b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2155,7 +2155,7 @@ extern void netdev_run_todo(void);
2155 */ 2155 */
2156static inline void dev_put(struct net_device *dev) 2156static inline void dev_put(struct net_device *dev)
2157{ 2157{
2158 irqsafe_cpu_dec(*dev->pcpu_refcnt); 2158 this_cpu_dec(*dev->pcpu_refcnt);
2159} 2159}
2160 2160
2161/** 2161/**
@@ -2166,7 +2166,7 @@ static inline void dev_put(struct net_device *dev)
2166 */ 2166 */
2167static inline void dev_hold(struct net_device *dev) 2167static inline void dev_hold(struct net_device *dev)
2168{ 2168{
2169 irqsafe_cpu_inc(*dev->pcpu_refcnt); 2169 this_cpu_inc(*dev->pcpu_refcnt);
2170} 2170}
2171 2171
2172/* Carrier loss detection, dial on demand. The functions netif_carrier_on 2172/* Carrier loss detection, dial on demand. The functions netif_carrier_on