xref: /kernel/linux/linux-5.10/arch/mips/include/asm/vdso/vsyscall.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/mips/include/asm/vdso/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __ASM_VDSO_VSYSCALL_H
38c2ecf20Sopenharmony_ci#define __ASM_VDSO_VSYSCALL_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/timekeeper_internal.h>
88c2ecf20Sopenharmony_ci#include <vdso/datapage.h>
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciextern struct vdso_data *vdso_data;
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/*
138c2ecf20Sopenharmony_ci * Update the vDSO data page to keep in sync with kernel timekeeping.
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_cistatic __always_inline
168c2ecf20Sopenharmony_cistruct vdso_data *__mips_get_k_vdso_data(void)
178c2ecf20Sopenharmony_ci{
188c2ecf20Sopenharmony_ci	return vdso_data;
198c2ecf20Sopenharmony_ci}
208c2ecf20Sopenharmony_ci#define __arch_get_k_vdso_data __mips_get_k_vdso_data
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci/* The asm-generic header needs to be included after the definitions above */
238c2ecf20Sopenharmony_ci#include <asm-generic/vdso/vsyscall.h>
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* !__ASSEMBLY__ */
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif /* __ASM_VDSO_VSYSCALL_H */
28

Indexes created Thu Nov 07 10:32:03 CST 2024