diff options
| author | Alexander Sverdlin <[email protected]> | 2024-11-26 07:36:43 +0000 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2025-01-06 18:37:49 +0000 |
| commit | 6a569e299f2be13e5e0f487930455b55a9cb4874 (patch) | |
| tree | a06049716b760283871cb807dbc34e7818d5ca96 /scripts/generate_rust_target.rs | |
| parent | Linux 6.13-rc6 (diff) | |
| download | kernel-6a569e299f2be13e5e0f487930455b55a9cb4874.tar.gz kernel-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 <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
