1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __ASM_VDSO_VSYSCALL_H 3 #define __ASM_VDSO_VSYSCALL_H 4 5 #ifndef __ASSEMBLY__ 6 7 #include <vdso/datapage.h> 8 #include <asm/cacheflush.h> 9 10 extern bool cntvct_ok; 11 12 static __always_inline 13 void __arch_sync_vdso_time_data(struct vdso_time_data *vdata) 14 { 15 flush_dcache_page(virt_to_page(vdata)); 16 } 17 #define __arch_sync_vdso_time_data __arch_sync_vdso_time_data 18 19 /* The asm-generic header needs to be included after the definitions above */ 20 #include <asm-generic/vdso/vsyscall.h> 21 22 #endif /* !__ASSEMBLY__ */ 23 24 #endif /* __ASM_VDSO_VSYSCALL_H */ 25