Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_VDSO_VSYSCALL_H
0003 #define __ASM_VDSO_VSYSCALL_H
0004 
0005 #ifndef __ASSEMBLY__
0006 
0007 #include <linux/hrtimer.h>
0008 #include <linux/timekeeper_internal.h>
0009 #include <vdso/datapage.h>
0010 #include <asm/vgtod.h>
0011 #include <asm/vvar.h>
0012 
0013 DEFINE_VVAR(struct vdso_data, _vdso_data);
0014 /*
0015  * Update the vDSO data page to keep in sync with kernel timekeeping.
0016  */
0017 static __always_inline
0018 struct vdso_data *__x86_get_k_vdso_data(void)
0019 {
0020     return _vdso_data;
0021 }
0022 #define __arch_get_k_vdso_data __x86_get_k_vdso_data
0023 
0024 /* The asm-generic header needs to be included after the definitions above */
0025 #include <asm-generic/vdso/vsyscall.h>
0026 
0027 #endif /* !__ASSEMBLY__ */
0028 
0029 #endif /* __ASM_VDSO_VSYSCALL_H */