summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2026-09-21 11:45:58 +0200
committerThomas Gleixner <tglx@kernel.org>2026-10-15 17:33:20 +0200
commit50628893711fd5dc3fdbe8cb95e685f2fe75b662 (patch)
tree3f814ece9175a000e31c795a67eda89f2dba16af /scripts/Makefile.thinlto
parent9e61cabcce2bdc14a5e4c0b08b2fbf5515f2ac23 (diff)
downloadlinux-50628893711fd5dc3fdbe8cb95e685f2fe75b662.tar.gz
linux-50628893711fd5dc3fdbe8cb95e685f2fe75b662.zip
vdso/gettimeofday: Avoid runtime conditional in do_hres_timens()
Currently the derivation of the non-namespaced clock from its namespaced sibling uses a runtime conditional. This conditional mirrors the VDSO_RAW check in __cvdso_clock_gettime_common(), in a non-obvious way. Replace the runtime conditional with unconditional pointer arithmetic, which removes the duplication of logic and also is smaller and faster. Also get rid of the weird double use of the 'vc' variable, pointing both to the array of clocks and later to one specific one. This saves 31 bytes of .text on x86_64. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260921-vdso-timens-conditional-v1-1-eac173f8bd92@weissschuh.net
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions