* [PATCH 2.{4,5}.x] mod_timer fix for sch_htb.c
@ 2003-05-04 9:40 Vinay K Nallamothu
0 siblings, 0 replies; only message in thread
From: Vinay K Nallamothu @ 2003-05-04 9:40 UTC (permalink / raw)
To: netdev
sch_htb.c: Trivial {del,add}_timer to mod_timer conversion.
--- linux-2.5.68/net/sched/sch_htb.c 2003-04-21 10:14:44.000000000 +0530
+++ linux-2.5.68-nvk/net/sched/sch_htb.c 2003-05-03 14:41:36.000000000 +0530
@@ -975,9 +975,7 @@
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-04 9:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-04 9:40 [PATCH 2.{4,5}.x] mod_timer fix for sch_htb.c Vinay K Nallamothu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).