summaryrefslogtreecommitdiff
path: root/include/asm-generic/vdso/vsyscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/vdso/vsyscall.h')
-rw-r--r--include/asm-generic/vdso/vsyscall.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asm-generic/vdso/vsyscall.h b/include/asm-generic/vdso/vsyscall.h
index 01dafd604188..ac5b93b91993 100644
--- a/include/asm-generic/vdso/vsyscall.h
+++ b/include/asm-generic/vdso/vsyscall.h
@@ -4,12 +4,28 @@
#ifndef __ASSEMBLY__
+#ifdef CONFIG_GENERIC_VDSO_DATA_STORE
+
+#ifndef __arch_get_vdso_u_time_data
+static __always_inline const struct vdso_time_data *__arch_get_vdso_u_time_data(void)
+{
+ return vdso_u_time_data;
+}
+#endif
+
+#else /* !CONFIG_GENERIC_VDSO_DATA_STORE */
+
#ifndef __arch_get_k_vdso_data
static __always_inline struct vdso_data *__arch_get_k_vdso_data(void)
{
return NULL;
}
#endif /* __arch_get_k_vdso_data */
+#define vdso_k_time_data __arch_get_k_vdso_data()
+
+#define __arch_get_vdso_u_time_data __arch_get_vdso_data
+
+#endif /* CONFIG_GENERIC_VDSO_DATA_STORE */
#ifndef __arch_update_vsyscall
static __always_inline void __arch_update_vsyscall(struct vdso_data *vdata)