From: Hector Palacios Date: Mon, 14 Nov 2011 10:15:25 +0000 (+0100) Subject: timekeeping: add arch_offset hook to ktime_get functions X-Git-Tag: v3.2-rc4~19^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d004e024058a0eaca097513ce62cbcf978913e0a;p=pandora-kernel.git 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 Signed-off-by: John Stultz --- Reading git-diff-tree failed