]> git.ipfire.org Git - thirdparty/systemd.git/commit
timer: Do not recalculate monotonic elapse time on clock change
authorFleuria <fleuria@posteo.co>
Thu, 3 Apr 2025 13:18:38 +0000 (20:18 +0700)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 Jun 2025 12:45:02 +0000 (14:45 +0200)
commitbed9d2587c852c6dad5b2959a6313c8590e5d6a6
tree49f743975eab03272d4f15e13fc882b60fa2183d
parentd63c8ce020e553b355025c40e8ef725abcadf604
timer: Do not recalculate monotonic elapse time on clock change

The only clock change that affects monotonic timers is suspend causing
CLOCK_MONOTONIC to fall behind CLOCK_BOOTTIME. However, monotonic timers
that use CLOCK_BOOTTIME are not intended to have their elapse time
changed after a suspend. Hence condition the calculation of monotonic
timers’ elapse times on the cause not being a clock change.

Fixes #29245
src/core/timer.c