diff options
author | 2024-11-26 08:36:43 +0100 | |
---|---|---|
committer | 2025-01-06 19:37:49 +0100 | |
commit | 6a569e299f2be13e5e0f487930455b55a9cb4874 (patch) | |
tree | a06049716b760283871cb807dbc34e7818d5ca96 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.13-rc6 (diff) | |
download | linux-rng-6a569e299f2be13e5e0f487930455b55a9cb4874.tar.xz linux-rng-6a569e299f2be13e5e0f487930455b55a9cb4874.zip |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions