diff options
| author | Miroslav Lichvar <[email protected]> | 2018-12-03 13:59:41 +0100 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2018-12-20 05:06:00 -0800 |
| commit | 5d8678365c90b9ce1fd2243ff5ea562609f6cec1 (patch) | |
| tree | 798e2b6811644dca8db59dd3783227fa1a170ee7 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | a9cd3439e3c6d777a05c63b4d06c3500d1d4074e (diff) | |
mlx5: update timecounter at least twice per counter overflow
The timecounter needs to be updated at least once in half of the
cyclecounter interval to prevent timecounter_cyc2time() interpreting a
new timestamp as an old value and causing a backward jump.
This would be an issue if the timecounter multiplier was so small that
the update interval would not be limited by the 64-bit overflow in
multiplication.
Shorten the calculated interval to make sure the timecounter is updated
in time even when the system clock is slowed down by up to 10%, the
multiplier is increased by up to 10%, and the scheduled overflow check
is late by 15%.
Cc: Richard Cochran <[email protected]>
Cc: Ariel Levkovich <[email protected]>
Cc: Saeed Mahameed <[email protected]>
Signed-off-by: Miroslav Lichvar <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions