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/namespace: Rename timens_setup_vdso_data() to reflect new vdso_clock struct
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 array of VDSO clocks. At the moment, vdso_clock is simply a define which maps vdso_clock to vdso_time_data. For time namespaces, vdso_time_data needs to be set up. But only the clock related part of the vdso_data thats requires this setup. To reflect the future struct vdso_clock, rename timens_setup_vdso_data() to timns_setup_vdso_clock_data(). No functional change. 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-13-c1b5c69a166f@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
b5afbc106d
commit
0235220807
@@ -176,8 +176,8 @@ static struct timens_offset offset_from_ts(struct timespec64 off)
|
||||
* Timens page has vdso_time_data->clock_mode set to VDSO_CLOCKMODE_TIMENS which
|
||||
* enforces the time namespace handling path.
|
||||
*/
|
||||
static void timens_setup_vdso_data(struct vdso_time_data *vdata,
|
||||
struct time_namespace *ns)
|
||||
static void timens_setup_vdso_clock_data(struct vdso_time_data *vdata,
|
||||
struct time_namespace *ns)
|
||||
{
|
||||
struct timens_offset *offset = vdata->offset;
|
||||
struct timens_offset monotonic = offset_from_ts(ns->offsets.monotonic);
|
||||
@@ -238,7 +238,7 @@ static void timens_set_vvar_page(struct task_struct *task,
|
||||
vdata = page_address(ns->vvar_page);
|
||||
|
||||
for (i = 0; i < CS_BASES; i++)
|
||||
timens_setup_vdso_data(&vdata[i], ns);
|
||||
timens_setup_vdso_clock_data(&vdata[i], ns);
|
||||
|
||||
out:
|
||||
mutex_unlock(&offset_lock);
|
||||
|
||||
Reference in New Issue
Block a user