pkt_sched: sch_htb: Consider used jiffies in htb_do_events()
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 13 Jan 2009 05:54:16 +0000 (21:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2009 05:54:16 +0000 (21:54 -0800)
Next event time should consider jiffies used for recounting. Otherwise
qdisc_watchdog_schedule() triggers hrtimer immediately with the event
in the past, and may cause very high ksoftirqd cpu usage (if highres
is on).

There is also removed checking "event" for zero in htb_dequeue(): it's
always true in this place.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found