Back to home page

OSCL-LXR

 
 

    


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