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

hwmon: ibmaem: Use ktime_get_ns()



Using the wall clock time for delta time calculations is wrong to
begin with because wall clock time can be set from userspace and NTP.
Such data wants to be based on clock monotonic.

The calculations also are done on a nanosecond basis. Use the
nanoseconds based interface right away.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Jean Delvare <jdelvare@suse.de>
Acked-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 5eaaed4f
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