Commit 27571339 authored by Vinay K. Nallamothu's avatar Vinay K. Nallamothu Committed by David S. Miller

[PKT_SCHED]: Use mod_timer in sch_cbq.c

parent c6afbf69
...@@ -1056,11 +1056,9 @@ cbq_dequeue(struct Qdisc *sch) ...@@ -1056,11 +1056,9 @@ cbq_dequeue(struct Qdisc *sch)
sch->stats.overlimits++; sch->stats.overlimits++;
if (q->wd_expires && !netif_queue_stopped(sch->dev)) { if (q->wd_expires && !netif_queue_stopped(sch->dev)) {
long delay = PSCHED_US2JIFFIE(q->wd_expires); long delay = PSCHED_US2JIFFIE(q->wd_expires);
del_timer(&q->wd_timer);
if (delay <= 0) if (delay <= 0)
delay = 1; delay = 1;
q->wd_timer.expires = jiffies + delay; mod_timer(&q->wd_timer, jiffies + delay);
add_timer(&q->wd_timer);
sch->flags |= TCQ_F_THROTTLED; sch->flags |= TCQ_F_THROTTLED;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment