diff options
author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2024-10-10 09:01:17 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-11-02 12:37:34 +0100 |
commit | 59b7761638a3f299750c04f431f2b4e1bea9465c (patch) | |
tree | 7a794f8b1a7331f8290ba14fddf98a70a62809c5 /arch/x86/entry | |
parent | 7175126a6d45fea82cb25f4d35b35a0999fd6dae (diff) | |
download | linux-stable-59b7761638a3f299750c04f431f2b4e1bea9465c.tar.gz linux-stable-59b7761638a3f299750c04f431f2b4e1bea9465c.tar.bz2 linux-stable-59b7761638a3f299750c04f431f2b4e1bea9465c.zip |
x86/vdso: Access timens vdso data without vvar.h
The vdso_data is at the start of the timens page.
Make use of this invariant to remove the usage of vvar.h.
This also matches the logic for the pvclock and hvclock pages.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241010-vdso-generic-base-v1-15-b64f0842d512@linutronix.de
Diffstat (limited to 'arch/x86/entry')
-rw-r--r-- | arch/x86/entry/vdso/vdso-layout.lds.S | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/entry/vdso/vdso-layout.lds.S b/arch/x86/entry/vdso/vdso-layout.lds.S index bafa73f09e92..51c0cc011974 100644 --- a/arch/x86/entry/vdso/vdso-layout.lds.S +++ b/arch/x86/entry/vdso/vdso-layout.lds.S @@ -28,12 +28,6 @@ SECTIONS hvclock_page = vvar_start + 2 * PAGE_SIZE; timens_page = vvar_start + 3 * PAGE_SIZE; -#undef _ASM_X86_VVAR_H - /* Place all vvars in timens too at the offsets in asm/vvar.h. */ -#define EMIT_VVAR(name, offset) timens_ ## name = timens_page + offset; -#include <asm/vvar.h> -#undef EMIT_VVAR - . = SIZEOF_HEADERS; .hash : { *(.hash) } :text |