vdso/helpers: Add helpers for seqlocks of single vdso_clock
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 1 Jul 2025 08:57:58 +0000 (10:57 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 9 Jul 2025 09:52:34 +0000 (11:52 +0200)
commitad64d71d7409a0602b50ee71c7f9663a3385c286
tree636ac1c64b1c904142d001d0d3ffe4c6ecce669e
parent76164ca0d113e6a9f3033f948c739586fc606ed1
vdso/helpers: Add helpers for seqlocks of single vdso_clock

Auxiliary clocks will have their vDSO data in a dedicated 'struct vdso_clock',
which needs to be synchronized independently.

Add a helper to synchronize a single vDSO clock.

[ tglx: Move the SMP memory barriers to the call sites and get rid of the
   confusing first/last arguments and conditional barriers ]

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250701-vdso-auxclock-v1-4-df7d9f87b9b8@linutronix.de
include/vdso/helpers.h