|
14 | 14 | #include <linux/kvm_host.h> |
15 | 15 | #include <linux/preempt.h> |
16 | 16 | #include <linux/suspend.h> |
| 17 | +#include <vdso/datapage.h> |
17 | 18 | #include <asm/cpufeature.h> |
18 | 19 | #include <asm/fixmap.h> |
19 | 20 | #include <asm/thread_info.h> |
20 | 21 | #include <asm/memory.h> |
21 | 22 | #include <asm/smp_plat.h> |
22 | 23 | #include <asm/suspend.h> |
23 | | -#include <asm/vdso_datapage.h> |
24 | 24 | #include <linux/kbuild.h> |
25 | 25 | #include <linux/arm-smccc.h> |
26 | 26 |
|
@@ -89,17 +89,28 @@ int main(void) |
89 | 89 | DEFINE(CLOCK_COARSE_RES, LOW_RES_NSEC); |
90 | 90 | DEFINE(NSEC_PER_SEC, NSEC_PER_SEC); |
91 | 91 | BLANK(); |
92 | | - DEFINE(VDSO_CS_CYCLE_LAST, offsetof(struct vdso_data, cs_cycle_last)); |
93 | | - DEFINE(VDSO_RAW_TIME_SEC, offsetof(struct vdso_data, raw_time_sec)); |
94 | | - DEFINE(VDSO_XTIME_CLK_SEC, offsetof(struct vdso_data, xtime_clock_sec)); |
95 | | - DEFINE(VDSO_XTIME_CRS_SEC, offsetof(struct vdso_data, xtime_coarse_sec)); |
96 | | - DEFINE(VDSO_XTIME_CRS_NSEC, offsetof(struct vdso_data, xtime_coarse_nsec)); |
97 | | - DEFINE(VDSO_WTM_CLK_SEC, offsetof(struct vdso_data, wtm_clock_sec)); |
98 | | - DEFINE(VDSO_TB_SEQ_COUNT, offsetof(struct vdso_data, tb_seq_count)); |
99 | | - DEFINE(VDSO_CS_MONO_MULT, offsetof(struct vdso_data, cs_mono_mult)); |
100 | | - DEFINE(VDSO_CS_SHIFT, offsetof(struct vdso_data, cs_shift)); |
| 92 | + DEFINE(VDSO_SEQ, offsetof(struct vdso_data, seq)); |
| 93 | + DEFINE(VDSO_CLK_MODE, offsetof(struct vdso_data, clock_mode)); |
| 94 | + DEFINE(VDSO_CYCLE_LAST, offsetof(struct vdso_data, cycle_last)); |
| 95 | + DEFINE(VDSO_MASK, offsetof(struct vdso_data, mask)); |
| 96 | + DEFINE(VDSO_MULT, offsetof(struct vdso_data, mult)); |
| 97 | + DEFINE(VDSO_SHIFT, offsetof(struct vdso_data, shift)); |
| 98 | + DEFINE(VDSO_REALTIME_SEC, offsetof(struct vdso_data, basetime[CLOCK_REALTIME].sec)); |
| 99 | + DEFINE(VDSO_REALTIME_NSEC, offsetof(struct vdso_data, basetime[CLOCK_REALTIME].nsec)); |
| 100 | + DEFINE(VDSO_MONO_SEC, offsetof(struct vdso_data, basetime[CLOCK_MONOTONIC].sec)); |
| 101 | + DEFINE(VDSO_MONO_NSEC, offsetof(struct vdso_data, basetime[CLOCK_MONOTONIC].nsec)); |
| 102 | + DEFINE(VDSO_MONO_RAW_SEC, offsetof(struct vdso_data, basetime[CLOCK_MONOTONIC_RAW].sec)); |
| 103 | + DEFINE(VDSO_MONO_RAW_NSEC, offsetof(struct vdso_data, basetime[CLOCK_MONOTONIC_RAW].nsec)); |
| 104 | + DEFINE(VDSO_BOOTTIME_SEC, offsetof(struct vdso_data, basetime[CLOCK_BOOTTIME].sec)); |
| 105 | + DEFINE(VDSO_BOOTTIME_NSEC, offsetof(struct vdso_data, basetime[CLOCK_BOOTTIME].nsec)); |
| 106 | + DEFINE(VDSO_TAI_SEC, offsetof(struct vdso_data, basetime[CLOCK_TAI].sec)); |
| 107 | + DEFINE(VDSO_TAI_NSEC, offsetof(struct vdso_data, basetime[CLOCK_TAI].nsec)); |
| 108 | + DEFINE(VDSO_RT_COARSE_SEC, offsetof(struct vdso_data, basetime[CLOCK_REALTIME_COARSE].sec)); |
| 109 | + DEFINE(VDSO_RT_COARSE_NSEC, offsetof(struct vdso_data, basetime[CLOCK_REALTIME_COARSE].nsec)); |
| 110 | + DEFINE(VDSO_MONO_COARSE_SEC, offsetof(struct vdso_data, basetime[CLOCK_MONOTONIC_COARSE].sec)); |
| 111 | + DEFINE(VDSO_MONO_COARSE_NSEC, offsetof(struct vdso_data, basetime[CLOCK_MONOTONIC_COARSE].nsec)); |
101 | 112 | DEFINE(VDSO_TZ_MINWEST, offsetof(struct vdso_data, tz_minuteswest)); |
102 | | - DEFINE(VDSO_USE_SYSCALL, offsetof(struct vdso_data, use_syscall)); |
| 113 | + DEFINE(VDSO_TZ_DSTTIME, offsetof(struct vdso_data, tz_dsttime)); |
103 | 114 | BLANK(); |
104 | 115 | DEFINE(TVAL_TV_SEC, offsetof(struct timeval, tv_sec)); |
105 | 116 | DEFINE(TSPEC_TV_SEC, offsetof(struct timespec, tv_sec)); |
|
0 commit comments