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 #include <asm/cacheflush.h>
0010 
0011 extern struct vdso_data *vdso_data;
0012 extern bool cntvct_ok;
0013 
0014 /*
0015  * Update the vDSO data page to keep in sync with kernel timekeeping.
0016  */
0017 static __always_inline
0018 struct vdso_data *__arm_get_k_vdso_data(void)
0019 {
0020     return vdso_data;
0021 }
0022 #define __arch_get_k_vdso_data __arm_get_k_vdso_data
0023 
0024 static __always_inline
0025 void __arm_sync_vdso_data(struct vdso_data *vdata)
0026 {
0027     flush_dcache_page(virt_to_page(vdata));
0028 }
0029 #define __arch_sync_vdso_data __arm_sync_vdso_data
0030 
0031 /* The asm-generic header needs to be included after the definitions above */
0032 #include <asm-generic/vdso/vsyscall.h>
0033 
0034 #endif /* !__ASSEMBLY__ */
0035 
0036 #endif /* __ASM_VDSO_VSYSCALL_H */