diff options
author | Christopher S. Hall <christopher.s.hall@intel.com> | 2016-02-22 11:15:21 (GMT) |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2016-03-03 01:13:02 (GMT) |
commit | ba26621e63ce6dc481d90ab9f6902e058d4ea39a (patch) | |
tree | 10052e1f9f2faead421bf452a8d259ae4bf840ee /kernel/time/tick-internal.h | |
parent | 9da0f49c8767cc0ef6101cb21156cf4380ed50dd (diff) | |
download | linux-ba26621e63ce6dc481d90ab9f6902e058d4ea39a.tar.xz |
time: Remove duplicated code in ktime_get_raw_and_real()
The code in ktime_get_snapshot() is a superset of the code in
ktime_get_raw_and_real() code. Further, ktime_get_raw_and_real() is
called only by the PPS code, pps_get_ts(). Consolidate the
pps_get_ts() code into a single function calling ktime_get_snapshot()
and eliminate ktime_get_raw_and_real(). A side effect of this is that
the raw and real results of pps_get_ts() correspond to exactly the
same clock cycle. Previously these values represented separate reads
of the system clock.
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: kevin.b.stanton@intel.com
Cc: kevin.j.clarke@intel.com
Cc: hpa@zytor.com
Cc: jeffrey.t.kirsher@intel.com
Cc: netdev@vger.kernel.org
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Christopher S. Hall <christopher.s.hall@intel.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/tick-internal.h')
0 files changed, 0 insertions, 0 deletions