aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/entry/vsyscall/vsyscall_gtod.c4
-rw-r--r--arch/x86/include/asm/vgtod.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/entry/vsyscall/vsyscall_gtod.c b/arch/x86/entry/vsyscall/vsyscall_gtod.c
index 31b9e5e0cfdf..cfcdba082feb 100644
--- a/arch/x86/entry/vsyscall/vsyscall_gtod.c
+++ b/arch/x86/entry/vsyscall/vsyscall_gtod.c
@@ -51,6 +51,10 @@ void update_vsyscall(struct timekeeper *tk)
51 base->sec = tk->xtime_sec; 51 base->sec = tk->xtime_sec;
52 base->nsec = tk->tkr_mono.xtime_nsec; 52 base->nsec = tk->tkr_mono.xtime_nsec;
53 53
54 base = &vdata->basetime[CLOCK_TAI];
55 base->sec = tk->xtime_sec + (s64)tk->tai_offset;
56 base->nsec = tk->tkr_mono.xtime_nsec;
57
54 base = &vdata->basetime[CLOCK_MONOTONIC]; 58 base = &vdata->basetime[CLOCK_MONOTONIC];
55 base->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; 59 base->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec;
56 nsec = tk->tkr_mono.xtime_nsec; 60 nsec = tk->tkr_mono.xtime_nsec;
diff --git a/arch/x86/include/asm/vgtod.h b/arch/x86/include/asm/vgtod.h
index 10e534a1a51a..d17b092b9f1b 100644
--- a/arch/x86/include/asm/vgtod.h
+++ b/arch/x86/include/asm/vgtod.h
@@ -18,8 +18,8 @@ struct vgtod_ts {
18 u64 nsec; 18 u64 nsec;
19}; 19};
20 20
21#define VGTOD_BASES (CLOCK_MONOTONIC_COARSE + 1) 21#define VGTOD_BASES (CLOCK_TAI + 1)
22#define VGTOD_HRES (BIT(CLOCK_REALTIME) | BIT(CLOCK_MONOTONIC)) 22#define VGTOD_HRES (BIT(CLOCK_REALTIME) | BIT(CLOCK_MONOTONIC) | BIT(CLOCK_TAI))
23#define VGTOD_COARSE (BIT(CLOCK_REALTIME_COARSE) | BIT(CLOCK_MONOTONIC_COARSE)) 23#define VGTOD_COARSE (BIT(CLOCK_REALTIME_COARSE) | BIT(CLOCK_MONOTONIC_COARSE))
24 24
25/* 25/*