Skip to content
Commit 14a70046 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by John Stultz
Browse files

net: mlx5: Use ktime_get_ns()



This code is beyond silly:

     struct timespec ts = ktime_get_ts();
     ktime_t ktime = timespec_to_ktime(ts);

Further down the code builds the delta of two ktime_t values and
converts the result to nanoseconds.

Use ktime_get_ns() and replace all the nonsense.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Eli Cohen <eli@mellanox.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 6d9b757c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment