Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|---|
| 2 | #ifndef __ASM_VDSO_VSYSCALL_H |
| 3 | #define __ASM_VDSO_VSYSCALL_H |
| 4 | |
| 5 | #ifndef __ASSEMBLER__ |
| 6 | |
| 7 | #include <vdso/datapage.h> |
| 8 | |
| 9 | #define VDSO_PRECISION_MASK ~(0xFF00ULL<<48) |
| 10 | |
| 11 | |
| 12 | /* |
| 13 | * Update the vDSO data page to keep in sync with kernel timekeeping. |
| 14 | */ |
| 15 | static __always_inline |
| 16 | void __arch_update_vdso_clock(struct vdso_clock *vc) |
| 17 | { |
| 18 | vc->mask = VDSO_PRECISION_MASK; |
| 19 | } |
| 20 | #define __arch_update_vdso_clock __arch_update_vdso_clock |
| 21 | |
| 22 | /* The asm-generic header needs to be included after the definitions above */ |
| 23 | #include <asm-generic/vdso/vsyscall.h> |
| 24 | |
| 25 | #endif /* !__ASSEMBLER__ */ |
| 26 | |
| 27 | #endif /* __ASM_VDSO_VSYSCALL_H */ |
| 28 |
Warning: This file is not a C or C++ file. It does not have highlighting.
