diff options
author | Hector Palacios <hector.palacios@digi.com> | 2011-11-14 11:15:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-09 08:54:23 -0800 |
commit | 92ad5083db212ff3c5f6d1d085d85790f7a6c42c (patch) | |
tree | 5d4947dc1f655656131a462c1482dd55c7d7f8a4 /arch/m68k/Kconfig | |
parent | c1d98cbbfc393f166b8a675b3acbdfab320adadc (diff) |
timekeeping: add arch_offset hook to ktime_get functions
commit d004e024058a0eaca097513ce62cbcf978913e0a upstream.
ktime_get and ktime_get_ts were calling timekeeping_get_ns()
but later they were not calling arch_gettimeoffset() so architectures
using this mechanism returned 0 ns when calling these functions.
This happened for example when running Busybox's ping which calls
syscall(__NR_clock_gettime, CLOCK_MONOTONIC, ts) which eventually
calls ktime_get. As a result the returned ping travel time was zero.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/m68k/Kconfig')
0 files changed, 0 insertions, 0 deletions