Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64/vdso: Prepare introduction of struct vdso_clock

To support multiple PTP clocks, the VDSO data structure needs to be
reworked. All clock specific data will end up in struct vdso_clock and in
struct vdso_time_data there will be array of VDSO clocks. At the moment,
vdso_clock is simply a define which maps vdso_clock to vdso_time_data.

To prepare for the rework of the data structures, replace the struct
vdso_time_data pointer with a struct vdso_clock pointer where applicable.

No functional change.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250303-vdso-clock-v1-16-c1b5c69a166f@linutronix.de

authored by

Nam Cao and committed by
Thomas Gleixner
5340f3cb bf0eff81

+2 -2
+2 -2
arch/arm64/include/asm/vdso/compat_gettimeofday.h
··· 155 155 } 156 156 #define __arch_get_vdso_u_time_data __arch_get_vdso_u_time_data 157 157 158 - static inline bool vdso_clocksource_ok(const struct vdso_time_data *vd) 158 + static inline bool vdso_clocksource_ok(const struct vdso_clock *vc) 159 159 { 160 - return vd->clock_mode == VDSO_CLOCKMODE_ARCHTIMER; 160 + return vc->clock_mode == VDSO_CLOCKMODE_ARCHTIMER; 161 161 } 162 162 #define vdso_clocksource_ok vdso_clocksource_ok 163 163