summaryrefslogtreecommitdiffstats
path: root/kernel/hrtimer.c
diff options
context:
space:
mode:
authorHector Palacios <hector.palacios@digi.com>2011-11-14 11:15:25 +0100
committerJohn Stultz <john.stultz@linaro.org>2011-11-17 23:57:19 +0100
commitd004e024058a0eaca097513ce62cbcf978913e0a (patch)
tree94191734e099dd46b8998d813125efaa4a8a37d6 /kernel/hrtimer.c
parentMerge branch 'formingo/3.2/tip/timers/core' of git://git.linaro.org/people/js... (diff)
downloadlinux-d004e024058a0eaca097513ce62cbcf978913e0a.tar.xz
linux-d004e024058a0eaca097513ce62cbcf978913e0a.zip
timekeeping: add arch_offset hook to ktime_get functions
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. CC: stable@kernel.org Signed-off-by: Hector Palacios <hector.palacios@digi.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/hrtimer.c')
0 files changed, 0 insertions, 0 deletions