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 9 #define VDSO_PRECISION_MASK ~(0xFF00ULL<<48) 10 11 12 /* 13 * Update the vDSO data page to keep in sync with kernel timekeeping. 14 */ 15 static __always_inline 16 void __arch_update_vdso_clock(struct vdso_clock *vc) 17 { 18 vc->mask = VDSO_PRECISION_MASK; 19 } 20 #define __arch_update_vdso_clock __arch_update_vdso_clock 21 22 /* The asm-generic header needs to be included after the definitions above */ 23 #include <asm-generic/vdso/vsyscall.h> 24 25 #endif /* !__ASSEMBLY__ */ 26 27 #endif /* __ASM_VDSO_VSYSCALL_H */ 28