diff options
| author | Thomas Gleixner <[email protected]> | 2024-08-03 15:07:51 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-08-05 14:14:14 +0000 |
| commit | 5916be8a53de6401871bdd953f6c60237b47d6d3 (patch) | |
| tree | 58fbb1542f4c4b2fabfc3fd8e2e672eab7c4a0c1 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | ntp: Safeguard against time_constant overflow (diff) | |
| download | kernel-5916be8a53de6401871bdd953f6c60237b47d6d3.tar.gz kernel-5916be8a53de6401871bdd953f6c60237b47d6d3.zip | |
timekeeping: Fix bogus clock_was_set() invocation in do_adjtimex()
The addition of the bases argument to clock_was_set() fixed up all call
sites correctly except for do_adjtimex(). This uses CLOCK_REALTIME
instead of CLOCK_SET_WALL as argument. CLOCK_REALTIME is 0.
As a result the effect of that clock_was_set() notification is incomplete
and might result in timers expiring late because the hrtimer code does
not re-evaluate the affected clock bases.
Use CLOCK_SET_WALL instead of CLOCK_REALTIME to tell the hrtimers code
which clock bases need to be re-evaluated.
Fixes: 17a1b8826b45 ("hrtimer: Add bases argument to clock_was_set()")
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/all/877ccx7igo.ffs@tglx
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
