aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r--net/sched/sch_generic.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index e595e6570ce..84c048a5479 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -211,13 +211,6 @@ static void dev_watchdog(unsigned long arg)
211 dev_put(dev); 211 dev_put(dev);
212} 212}
213 213
214static void dev_watchdog_init(struct net_device *dev)
215{
216 init_timer(&dev->watchdog_timer);
217 dev->watchdog_timer.data = (unsigned long)dev;
218 dev->watchdog_timer.function = dev_watchdog;
219}
220
221void __netdev_watchdog_up(struct net_device *dev) 214void __netdev_watchdog_up(struct net_device *dev)
222{ 215{
223 if (dev->tx_timeout) { 216 if (dev->tx_timeout) {
@@ -608,7 +601,7 @@ void dev_init_scheduler(struct net_device *dev)
608 INIT_LIST_HEAD(&dev->qdisc_list); 601 INIT_LIST_HEAD(&dev->qdisc_list);
609 qdisc_unlock_tree(dev); 602 qdisc_unlock_tree(dev);
610 603
611 dev_watchdog_init(dev); 604 setup_timer(&dev->watchdog_timer, dev_watchdog, (unsigned long)dev);
612} 605}
613 606
614void dev_shutdown(struct net_device *dev) 607void dev_shutdown(struct net_device *dev)