Skip to content

Commit 5340f3c

Browse files
covanamKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent bf0eff8 commit 5340f3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/include/asm/vdso/compat_gettimeofday.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ static __always_inline const struct vdso_time_data *__arch_get_vdso_u_time_data(
155155
}
156156
#define __arch_get_vdso_u_time_data __arch_get_vdso_u_time_data
157157

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)
159159
{
160-
return vd->clock_mode == VDSO_CLOCKMODE_ARCHTIMER;
160+
return vc->clock_mode == VDSO_CLOCKMODE_ARCHTIMER;
161161
}
162162
#define vdso_clocksource_ok vdso_clocksource_ok
163163

0 commit comments

Comments
 (0)