mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
vdso/vsyscall: Update auxiliary clock data in the datapage
Expose the auxiliary clock data so it can be read from the vDSO. Architectures not using the generic vDSO time framework, namely SPARC64, are not supported. 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-11-df7d9f87b9b8@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
9b7fc3f145
commit
380b84e168
@@ -242,6 +242,11 @@ static void timens_set_vvar_page(struct task_struct *task,
|
||||
for (i = 0; i < CS_BASES; i++)
|
||||
timens_setup_vdso_clock_data(&vc[i], ns);
|
||||
|
||||
if (IS_ENABLED(CONFIG_POSIX_AUX_CLOCKS)) {
|
||||
for (i = 0; i < ARRAY_SIZE(vdata->aux_clock_data); i++)
|
||||
timens_setup_vdso_clock_data(&vdata->aux_clock_data[i], ns);
|
||||
}
|
||||
|
||||
out:
|
||||
mutex_unlock(&offset_lock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user