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/timekeeper_internal.h>
0008 #include <vdso/datapage.h>
0009 
0010 extern struct vdso_data *vdso_data;
0011 
0012 /*
0013  * Update the vDSO data page to keep in sync with kernel timekeeping.
0014  */
0015 static __always_inline
0016 struct vdso_data *__mips_get_k_vdso_data(void)
0017 {
0018     return vdso_data;
0019 }
0020 #define __arch_get_k_vdso_data __mips_get_k_vdso_data
0021 
0022 /* The asm-generic header needs to be included after the definitions above */
0023 #include <asm-generic/vdso/vsyscall.h>
0024 
0025 #endif /* !__ASSEMBLY__ */
0026 
0027 #endif /* __ASM_VDSO_VSYSCALL_H */