Skip to content

Commit a05f14d

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
vdso/datapage: Define vdso_clock to prepare for multiple PTP clocks
Multiple PTP clocks, which are independent of timekeeping, are required for systems, which utilize PTP for synchronizing e.g. automation systems independent of clock TAI. PTP clocks are slow to access, but applications require fast access to the relevant time similar to the regular timekeeping relevant clocks. To prepare for that the VDSO data representation must be reworked. For transition to the new structure of the vdso, add a define which maps vdso_clock to vdso_data. This will be removed when all users are updated step by step. No functional change. Signed-off-by: Anna-Maria Behnsen <[email protected]> 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 fa8152c commit a05f14d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/vdso/datapage.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ struct vdso_time_data {
129129
struct arch_vdso_time_data arch_data;
130130
} ____cacheline_aligned;
131131

132+
#define vdso_clock vdso_time_data
133+
132134
/**
133135
* struct vdso_rng_data - vdso RNG state information
134136
* @generation: counter representing the number of RNG reseeds

0 commit comments

Comments
 (0)