xref: /linux/arch/powerpc/include/asm/vdso/vsyscall.h (revision 06a130e42a5bfc84795464bff023bff4c16f58c5)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_VDSO_VSYSCALL_H
3 #define _ASM_POWERPC_VDSO_VSYSCALL_H
4 
5 #ifndef __ASSEMBLY__
6 
7 #include <linux/timekeeper_internal.h>
8 #include <asm/vdso_datapage.h>
9 
10 /*
11  * Update the vDSO data page to keep in sync with kernel timekeeping.
12  */
13 static __always_inline
14 struct vdso_data *__arch_get_k_vdso_data(void)
15 {
16 	return vdso_data->data;
17 }
18 #define __arch_get_k_vdso_data __arch_get_k_vdso_data
19 
20 static __always_inline
21 struct vdso_rng_data *__arch_get_k_vdso_rng_data(void)
22 {
23 	return &vdso_data->rng_data;
24 }
25 
26 /* The asm-generic header needs to be included after the definitions above */
27 #include <asm-generic/vdso/vsyscall.h>
28 
29 #endif /* !__ASSEMBLY__ */
30 
31 #endif /* _ASM_POWERPC_VDSO_VSYSCALL_H */
32