diff options
| author | 2026-09-18 17:14:26 -0700 | |
|---|---|---|
| committer | 2026-09-29 21:02:52 +0200 | |
| commit | 15f84398330ce1c0aa3e1e3edd0c915324bed26b (patch) | |
| tree | 3bb5d884a9c201aa158953daf9cd16ce4979807e /scripts/Makefile.thinlto | |
| parent | futex: Use accessor for hrtimer_sleeper ->task field in requeue (diff) | |
hrtimer: Update hrtimer_resolution only if value changes
Currently, the hrtimer_switch_to_hres() function unconditionally updates
hrtimer_resolution to HIGH_RES_NSEC. This causes KCSAN false positives
in kernels built with CONFIG_KCSAN_STRICT=y. It also causes unnecessary
cache-line traffic on the many code paths that load hrtimer_resolution,
which is especially regrettable because the value of hrtimer_resolution
normally changes only once during the lifetime of a given kernel.
Therefore, update the value of hrtimer_resolution to HIGH_RES_NSEC only
if it does not already have that value.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260919001428.3133388-10-paulmck@kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
