Skip to content
Commit d004e024 authored by Hector Palacios's avatar Hector Palacios Committed by John Stultz
Browse files

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: default avatarHector Palacios <hector.palacios@digi.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 367177e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment