]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: gen_estimator: account for timer drifts
authorEric Dumazet <edumazet@google.com>
Fri, 2 Dec 2016 16:11:00 +0000 (08:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Dec 2016 21:12:17 +0000 (16:12 -0500)
commit6a960df3a159e12247679f7f3b937bfcb23f8f69
tree1af0100515470e6aa6a942f0d13ff51529efbc81
parentcdc4627d38902fbc0c645182dcd97af9b50d56a3
net_sched: gen_estimator: account for timer drifts

Under heavy stress, timer used in estimators tend to slowly be delayed
by a few jiffies, leading to inaccuracies.

Lets remember what was the last scheduled jiffies so that we get more
precise estimations, without having to add a multiply/divide in the loop
to account for the drifts.

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