aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorChristopher S. Hall <[email protected]>2016-02-22 11:15:21 +0000
committerJohn Stultz <[email protected]>2016-03-03 01:13:02 +0000
commitba26621e63ce6dc481d90ab9f6902e058d4ea39a (patch)
tree10052e1f9f2faead421bf452a8d259ae4bf840ee /net/switchdev/switchdev.c
parenttime: Add timekeeping snapshot code capturing system time and counter (diff)
downloadkernel-ba26621e63ce6dc481d90ab9f6902e058d4ea39a.tar.gz
kernel-ba26621e63ce6dc481d90ab9f6902e058d4ea39a.zip
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 <[email protected]> Cc: Richard Cochran <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Reviewed-by: Thomas Gleixner <[email protected]> Signed-off-by: Christopher S. Hall <[email protected]> Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions