aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-07-01 10:57:57 +0200
committerThomas Gleixner <tglx@linutronix.de>2025-07-09 11:52:34 +0200
commit76164ca0d113e6a9f3033f948c739586fc606ed1 (patch)
tree71c3240cd2fa24782ef5f2e91ab33bd21779cdef /kernel/time
parentvdso/vsyscall: Introduce a helper to fill clock configurations (diff)
downloadlinux-76164ca0d113e6a9f3033f948c739586fc606ed1.tar.gz
linux-76164ca0d113e6a9f3033f948c739586fc606ed1.zip
vdso/vsyscall: Split up __arch_update_vsyscall() into __arch_update_vdso_clock()
The upcoming auxiliary clocks need this hook, too. To separate the architecture hooks from the timekeeper internals, refactor the hook to only operate on a single vDSO clock. While at it, use a more robust #define for the hook override. 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-3-df7d9f87b9b8@linutronix.de
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/vsyscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/time/vsyscall.c b/kernel/time/vsyscall.c
index d655df259733..df6bada2d58e 100644
--- a/kernel/time/vsyscall.c
+++ b/kernel/time/vsyscall.c
@@ -118,7 +118,8 @@ void update_vsyscall(struct timekeeper *tk)
if (clock_mode != VDSO_CLOCKMODE_NONE)
update_vdso_time_data(vdata, tk);
- __arch_update_vsyscall(vdata);
+ __arch_update_vdso_clock(&vc[CS_HRES_COARSE]);
+ __arch_update_vdso_clock(&vc[CS_RAW]);
vdso_write_end(vdata);