diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 7c717907896d..98c98e6cd4f3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -852,11 +852,9 @@ static inline void netif_rx_complete(struct net_device *dev) | |||
852 | 852 | ||
853 | static inline void netif_poll_disable(struct net_device *dev) | 853 | static inline void netif_poll_disable(struct net_device *dev) |
854 | { | 854 | { |
855 | while (test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state)) { | 855 | while (test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state)) |
856 | /* No hurry. */ | 856 | /* No hurry. */ |
857 | current->state = TASK_INTERRUPTIBLE; | 857 | schedule_timeout_interruptible(1); |
858 | schedule_timeout(1); | ||
859 | } | ||
860 | } | 858 | } |
861 | 859 | ||
862 | static inline void netif_poll_enable(struct net_device *dev) | 860 | static inline void netif_poll_enable(struct net_device *dev) |