Skip to content

Commit

Permalink
powerpc/vdso: Prepare introduction of struct vdso_clock
Browse files Browse the repository at this point in the history
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-17-c1b5c69a166f@linutronix.de
  • Loading branch information
Nam Cao authored and Thomas Gleixner committed Mar 8, 2025
1 parent 5340f3c commit ed0c10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/vdso/gettimeofday.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static __always_inline u64 __arch_get_hw_counter(s32 clock_mode,
return get_tb();
}

static inline bool vdso_clocksource_ok(const struct vdso_time_data *vd)
static inline bool vdso_clocksource_ok(const struct vdso_clock *vc)
{
return true;
}
Expand Down

0 comments on commit ed0c10f

Please sign in to comment.