diff options
| author | Karl Mehltretter <kmehltretter@gmail.com> | 2026-10-26 02:02:00 +0100 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-10-27 21:26:16 +0100 |
| commit | f322d7f7ae56bce728ba03a387e35380bc4ad939 (patch) | |
| tree | 84eade7e48f3911a13674bf1f6eb1509874fa044 /scripts/basic | |
| parent | cbd0f65b48f52d308c457b0fd5201324abadb501 (diff) | |
| download | linux-f322d7f7ae56bce728ba03a387e35380bc4ad939.tar.gz linux-f322d7f7ae56bce728ba03a387e35380bc4ad939.zip | |
clocksource: Prevent immediate watchdog rerun after a delay
The watchdog rewrite made the clocksource check handle long intervals
between two measurements, but missed that the timer expiry needs to be
rebased after such a delay.
When a watchdog invocation is delayed by more than one interval, adding
WATCHDOG_INTERVAL to the previous expiry leaves the timer expiry in the
past. That causes an immediate second invocation. The resulting short
measurement interval can mark a clocksource unstable.
Cure this by rearming the timer based on jiffies, which places the next
expiry one full watchdog interval into the future.
Fixes: 763aacf86f1b ("clocksource: Rewrite watchdog code completely")
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20261026010200.96371-1-kmehltretter@gmail.com
Closes: https://lore.kernel.org/r/20261010065509.72916-1-kmehltretter@gmail.com/
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
