mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
vdso: Rework struct vdso_time_data and introduce struct vdso_clock
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 an array of VDSO clocks. Now that all preparatory changes are in place: Split the clock related struct members into a separate struct vdso_clock. Make sure all users are aware, that vdso_time_data is no longer initialized as an array and vdso_clock is now the array inside vdso_data. Remove the vdso_clock define, which mapped it to vdso_time_data for the transition. Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> 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-19-c1b5c69a166f@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
97a5a90ca2
commit
886653e366
@@ -237,7 +237,7 @@ static void timens_set_vvar_page(struct task_struct *task,
|
||||
|
||||
ns->frozen_offsets = true;
|
||||
vdata = page_address(ns->vvar_page);
|
||||
vc = vdata;
|
||||
vc = vdata->clock_data;
|
||||
|
||||
for (i = 0; i < CS_BASES; i++)
|
||||
timens_setup_vdso_clock_data(&vc[i], ns);
|
||||
|
||||
Reference in New Issue
Block a user