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

[PKT_SCHED]: Use mod_timer in sch_htb.c

parent f8e3e751
......@@ -975,9 +975,7 @@ static void htb_delay_by(struct Qdisc *sch,long delay)
printk(KERN_INFO "HTB delay %ld > 5sec\n", delay);
delay = 5*HZ;
}
del_timer(&q->timer);
q->timer.expires = jiffies + delay;
add_timer(&q->timer);
mod_timer(&q->timer, jiffies + delay);
sch->flags |= TCQ_F_THROTTLED;
sch->stats.overlimits++;
HTB_DBG(3,1,"htb_deq t_delay=%ld\n",delay);
......
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