diff options
author | John Stultz <john.stultz@linaro.org> | 2014-08-13 15:47:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-14 13:04:11 -0400 |
commit | 0680eb1f485ba5aac2ee02c9f0622239c9a4b16c (patch) | |
tree | d3878c2a5fe3a3d1709ba8fdd937ea3666093c18 /kernel | |
parent | f2937e4540836be5c4db7e0a721ce3cfc59036e3 (diff) |
timekeeping: Another fix to the VSYSCALL_OLD update_vsyscall
Benjamin Herrenschmidt pointed out that I further missed modifying
update_vsyscall after the wall_to_mono value was changed to a
timespec64. This causes issues on powerpc32, which expects a 32bit
timespec.
This patch fixes the problem by properly converting from a timespec64 to
a timespec before passing the value on to the arch-specific vsyscall
logic.
[ Thomas is currently on vacation, but reviewed it and wanted me to send
this fix on to you directly. ]
Cc: LKML <linux-kernel@vger.kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/timekeeping.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index f36b02838a47..fb4a9c2cf8d9 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -338,10 +338,11 @@ EXPORT_SYMBOL_GPL(ktime_get_mono_fast_ns); | |||
338 | 338 | ||
339 | static inline void update_vsyscall(struct timekeeper *tk) | 339 | static inline void update_vsyscall(struct timekeeper *tk) |
340 | { | 340 | { |
341 | struct timespec xt; | 341 | struct timespec xt, wm; |
342 | 342 | ||
343 | xt = timespec64_to_timespec(tk_xtime(tk)); | 343 | xt = timespec64_to_timespec(tk_xtime(tk)); |
344 | update_vsyscall_old(&xt, &tk->wall_to_monotonic, tk->tkr.clock, tk->tkr.mult, | 344 | wm = timespec64_to_timespec(tk->wall_to_monotonic); |
345 | update_vsyscall_old(&xt, &wm, tk->tkr.clock, tk->tkr.mult, | ||
345 | tk->tkr.cycle_last); | 346 | tk->tkr.cycle_last); |
346 | } | 347 | } |
347 | 348 | ||