aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-16 17:05:16 -0400
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 18:01:53 -0400
commitd28ede83791defee9a81e558540699dc46dbbe13 (patch)
tree40df9738db287097241fe25493df982ee33b046f /arch/tile
parent6d3aadf3e180e09dbefab16478c6876b584ce16e (diff)
timekeeping: Create struct tk_read_base and use it in struct timekeeper
The members of the new struct are the required ones for the new NMI safe accessor to clcok monotonic. In order to reuse the existing timekeeping code and to make the update of the fast NMI safe timekeepers a simple memcpy use the struct for the timekeeper as well and convert all users. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/kernel/time.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/tile/kernel/time.c b/arch/tile/kernel/time.c
index d22d5bfc1e4e..d8fbc289e680 100644
--- a/arch/tile/kernel/time.c
+++ b/arch/tile/kernel/time.c
@@ -261,7 +261,7 @@ void update_vsyscall_tz(void)
261void update_vsyscall(struct timekeeper *tk) 261void update_vsyscall(struct timekeeper *tk)
262{ 262{
263 struct timespec *wtm = &tk->wall_to_monotonic; 263 struct timespec *wtm = &tk->wall_to_monotonic;
264 struct clocksource *clock = tk->clock; 264 struct clocksource *clock = tk->tkr.clock;
265 265
266 if (clock != &cycle_counter_cs) 266 if (clock != &cycle_counter_cs)
267 return; 267 return;
@@ -269,13 +269,13 @@ void update_vsyscall(struct timekeeper *tk)
269 /* Userspace gettimeofday will spin while this value is odd. */ 269 /* Userspace gettimeofday will spin while this value is odd. */
270 ++vdso_data->tb_update_count; 270 ++vdso_data->tb_update_count;
271 smp_wmb(); 271 smp_wmb();
272 vdso_data->xtime_tod_stamp = tk->cycle_last; 272 vdso_data->xtime_tod_stamp = tk->tkr.cycle_last;
273 vdso_data->xtime_clock_sec = tk->xtime_sec; 273 vdso_data->xtime_clock_sec = tk->xtime_sec;
274 vdso_data->xtime_clock_nsec = tk->xtime_nsec; 274 vdso_data->xtime_clock_nsec = tk->tkr.xtime_nsec;
275 vdso_data->wtom_clock_sec = wtm->tv_sec; 275 vdso_data->wtom_clock_sec = wtm->tv_sec;
276 vdso_data->wtom_clock_nsec = wtm->tv_nsec; 276 vdso_data->wtom_clock_nsec = wtm->tv_nsec;
277 vdso_data->mult = tk->mult; 277 vdso_data->mult = tk->tkr.mult;
278 vdso_data->shift = tk->shift; 278 vdso_data->shift = tk->tkr.shift;
279 smp_wmb(); 279 smp_wmb();
280 ++vdso_data->tb_update_count; 280 ++vdso_data->tb_update_count;
281} 281}