summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-09-18 17:14:26 -0700
committerThomas Gleixner <tglx@kernel.org>2026-09-29 21:02:52 +0200
commit15f84398330ce1c0aa3e1e3edd0c915324bed26b (patch)
tree3bb5d884a9c201aa158953daf9cd16ce4979807e /scripts/Makefile.thinlto
parent7eed1771a6e84101c7cdf8b7d487f01b6420ba8c (diff)
downloadlinux-15f84398330ce1c0aa3e1e3edd0c915324bed26b.tar.gz
linux-15f84398330ce1c0aa3e1e3edd0c915324bed26b.zip
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