diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_generic.c | 9 | ||||
-rw-r--r-- | net/sched/sch_sfq.c | 4 |
2 files changed, 2 insertions, 11 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 | ||
214 | static 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 | |||
221 | void __netdev_watchdog_up(struct net_device *dev) | 214 | void __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 | ||
614 | void dev_shutdown(struct net_device *dev) | 607 | void dev_shutdown(struct net_device *dev) |
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index b542c875e15..65293876cd6 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c | |||
@@ -426,9 +426,7 @@ static int sfq_init(struct Qdisc *sch, struct rtattr *opt) | |||
426 | struct sfq_sched_data *q = qdisc_priv(sch); | 426 | struct sfq_sched_data *q = qdisc_priv(sch); |
427 | int i; | 427 | int i; |
428 | 428 | ||
429 | init_timer(&q->perturb_timer); | 429 | setup_timer(&q->perturb_timer, sfq_perturbation, (unsigned long)sch); |
430 | q->perturb_timer.data = (unsigned long)sch; | ||
431 | q->perturb_timer.function = sfq_perturbation; | ||
432 | 430 | ||
433 | for (i=0; i<SFQ_HASH_DIVISOR; i++) | 431 | for (i=0; i<SFQ_HASH_DIVISOR; i++) |
434 | q->ht[i] = SFQ_DEPTH; | 432 | q->ht[i] = SFQ_DEPTH; |