diff options
author | Alexander Sverdlin <alexander.sverdlin@siemens.com> | 2024-11-26 10:36:43 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2025-01-06 21:37:49 +0300 |
commit | 6a569e299f2be13e5e0f487930455b55a9cb4874 (patch) | |
tree | a06049716b760283871cb807dbc34e7818d5ca96 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 9d89551994a430b50c4fffcb1e617a057fa76e20 (diff) | |
download | linux-6a569e299f2be13e5e0f487930455b55a9cb4874.tar.xz |
watchdog: rti: Fix off-by-one in heartbeat recovery
According to AM62x TRM WDT period is (RTIDWDPRLD + 1) * (2^13) / RTICLK1,
Fix the heartbeat recovery. In practice this doesn't affect rounded
heatbeat in seconds, but it does correct 4% of error in milliseconds,
for, say, default 60s heartbeat. This affects last_ping calculation.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241126073646.126752-1-alexander.sverdlin@siemens.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions