diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-07-16 17:05:13 -0400 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2014-07-23 18:01:52 -0400 |
commit | 4a0e637738f06673725792d74eed67f8779b62c7 (patch) | |
tree | a5943ca88cc98cf65d3d2fd22f6311699ed2222b /include/linux/timekeeper_internal.h | |
parent | 09ec54429c6d10f87d1f084de53ae2c1c3a81108 (diff) |
clocksource: Get rid of cycle_last
cycle_last was added to the clocksource to support the TSC
validation. We moved that to the core code, so we can get rid of the
extra copy.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux/timekeeper_internal.h')
-rw-r--r-- | include/linux/timekeeper_internal.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h index 2e20275a7083..cb88096222c0 100644 --- a/include/linux/timekeeper_internal.h +++ b/include/linux/timekeeper_internal.h | |||
@@ -29,6 +29,8 @@ | |||
29 | struct timekeeper { | 29 | struct timekeeper { |
30 | /* Current clocksource used for timekeeping. */ | 30 | /* Current clocksource used for timekeeping. */ |
31 | struct clocksource *clock; | 31 | struct clocksource *clock; |
32 | /* Last cycle value */ | ||
33 | cycle_t cycle_last; | ||
32 | /* NTP adjusted clock multiplier */ | 34 | /* NTP adjusted clock multiplier */ |
33 | u32 mult; | 35 | u32 mult; |
34 | /* The shift value of the current clocksource. */ | 36 | /* The shift value of the current clocksource. */ |
@@ -62,8 +64,6 @@ struct timekeeper { | |||
62 | 64 | ||
63 | /* Number of clock cycles in one NTP interval. */ | 65 | /* Number of clock cycles in one NTP interval. */ |
64 | cycle_t cycle_interval; | 66 | cycle_t cycle_interval; |
65 | /* Last cycle value (also stored in clock->cycle_last) */ | ||
66 | cycle_t cycle_last; | ||
67 | /* Number of clock shifted nano seconds in one NTP interval. */ | 67 | /* Number of clock shifted nano seconds in one NTP interval. */ |
68 | u64 xtime_interval; | 68 | u64 xtime_interval; |
69 | /* shifted nano seconds left over when rounding cycle_interval */ | 69 | /* shifted nano seconds left over when rounding cycle_interval */ |
@@ -91,7 +91,8 @@ extern void update_vsyscall_tz(void); | |||
91 | #elif defined(CONFIG_GENERIC_TIME_VSYSCALL_OLD) | 91 | #elif defined(CONFIG_GENERIC_TIME_VSYSCALL_OLD) |
92 | 92 | ||
93 | extern void update_vsyscall_old(struct timespec *ts, struct timespec *wtm, | 93 | extern void update_vsyscall_old(struct timespec *ts, struct timespec *wtm, |
94 | struct clocksource *c, u32 mult); | 94 | struct clocksource *c, u32 mult, |
95 | cycles_t cycle_last); | ||
95 | extern void update_vsyscall_tz(void); | 96 | extern void update_vsyscall_tz(void); |
96 | 97 | ||
97 | #else | 98 | #else |