]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: ibmaem: Use ktime_get_ns()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:04:47 +0000 (21:04 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 22:01:44 +0000 (15:01 -0700)
commitcb4734688854644c9e17f704021f1ce23dfcf431
tree3416ee5247b9dae698bedf918ecfa7e96c2d473b
parent764e9e1d843707d8d4bc1d9ff1096a54d872753c
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: Thomas Gleixner <tglx@linutronix.de>
Cc: Jean Delvare <jdelvare@suse.de>
Acked-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/hwmon/ibmaem.c