|
4 | 4 |
|
5 | 5 | #ifndef __ASSEMBLY__
|
6 | 6 |
|
7 |
| -#include <linux/bits.h> |
8 |
| -#include <linux/time.h> |
9 |
| -#include <linux/types.h> |
| 7 | +#include <linux/compiler.h> |
| 8 | +#include <uapi/linux/time.h> |
| 9 | +#include <uapi/linux/types.h> |
| 10 | +#include <uapi/asm-generic/errno-base.h> |
| 11 | + |
| 12 | +#include <vdso/bits.h> |
| 13 | +#include <vdso/clocksource.h> |
| 14 | +#include <vdso/ktime.h> |
| 15 | +#include <vdso/limits.h> |
| 16 | +#include <vdso/math64.h> |
| 17 | +#include <vdso/processor.h> |
| 18 | +#include <vdso/time.h> |
| 19 | +#include <vdso/time32.h> |
| 20 | +#include <vdso/time64.h> |
10 | 21 |
|
11 | 22 | #define VDSO_BASES (CLOCK_TAI + 1)
|
12 | 23 | #define VDSO_HRES (BIT(CLOCK_REALTIME) | \
|
@@ -99,6 +110,22 @@ struct vdso_data {
|
99 | 110 | */
|
100 | 111 | extern struct vdso_data _vdso_data[CS_BASES] __attribute__((visibility("hidden")));
|
101 | 112 |
|
| 113 | +/* |
| 114 | + * The generic vDSO implementation requires that gettimeofday.h |
| 115 | + * provides: |
| 116 | + * - __arch_get_vdso_data(): to get the vdso datapage. |
| 117 | + * - __arch_get_hw_counter(): to get the hw counter based on the |
| 118 | + * clock_mode. |
| 119 | + * - gettimeofday_fallback(): fallback for gettimeofday. |
| 120 | + * - clock_gettime_fallback(): fallback for clock_gettime. |
| 121 | + * - clock_getres_fallback(): fallback for clock_getres. |
| 122 | + */ |
| 123 | +#ifdef ENABLE_COMPAT_VDSO |
| 124 | +#include <asm/vdso/compat_gettimeofday.h> |
| 125 | +#else |
| 126 | +#include <asm/vdso/gettimeofday.h> |
| 127 | +#endif /* ENABLE_COMPAT_VDSO */ |
| 128 | + |
102 | 129 | #endif /* !__ASSEMBLY__ */
|
103 | 130 |
|
104 | 131 | #endif /* __VDSO_DATAPAGE_H */
|
0 commit comments