ARM: VDSO: Remove cntvct_ok global variable
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 26 Aug 2025 06:17:05 +0000 (08:17 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 4 Sep 2025 09:23:49 +0000 (11:23 +0200)
commit39f1ee1299c9bab9c87dc3087b9f82f346b8190b
tree3ef34943c19f66dcd6a31b33ceb82edad0b35c90
parent7c0c01a216e6d9e1d169c0f6f3b5522e6da708ed
ARM: VDSO: Remove cntvct_ok global variable

The cntvct_ok variable has not had any external user since commit
c7a18100bdff ("lib/vdso: Avoid highres update if clocksource is not
VDSO capable").

It also only has one user in vdso.c, once during init, so rather than
having the caller of patch_vdso() initialize cntvct_ok, just call
cntvct_functional() directly and avoid the global variable entirely.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://lore.kernel.org/all/20250826-vdso-cleanups-v1-2-d9b65750e49f@linutronix.de
arch/arm/include/asm/vdso/vsyscall.h
arch/arm/kernel/vdso.c