]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: do not reprogram a timer about to expire
authorEric Dumazet <edumazet@google.com>
Tue, 17 Mar 2020 02:12:50 +0000 (19:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2020 04:16:35 +0000 (21:16 -0700)
commitb2b440aa1412812e4fea7c323c112acf30f7b215
tree351e2b1165849c97cc6b2974e713f3b00c3f0447
parent8a61c2dc69e155a67a6b1316ace38081b5d4a116
net_sched: do not reprogram a timer about to expire

qdisc_watchdog_schedule_range_ns() can use the newly added slack
and avoid rearming the hrtimer a bit earlier than the current
value. This patch has no effect if delta_ns parameter
is zero.

Note that this means the max slack is potentially doubled.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c