commit | 14a7004671246d1b799f545335995a9897de1268 | [log] [tgz] |
---|---|---|
author | Thomas Gleixner <tglx@linutronix.de> | Wed Jul 16 21:04:44 2014 +0000 |
committer | John Stultz <john.stultz@linaro.org> | Wed Jul 23 15:01:43 2014 -0700 |
tree | 877426f4f8798fdbe198095dcc46ceb36f96f0ee | |
parent | 6d9b757c6ce850d0fb61d31f48e7bae56240643b [diff] |
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: Thomas Gleixner <tglx@linutronix.de> Cc: Eli Cohen <eli@mellanox.com> Signed-off-by: John Stultz <john.stultz@linaro.org>