cpufreq: speedstep-lib: Use monotonic clock
authorAbhilash Jindal <klock.android@gmail.com>
Tue, 11 Aug 2015 16:01:22 +0000 (12:01 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Sep 2015 13:51:43 +0000 (15:51 +0200)
commit72e624de6e6f0d5a638fbc23842aa76ae048e9e7
tree5752040aa7d5293ce0aa33a122f9900aa1f0fb63
parent309d0631cc329ca1051c631c89e0acc9b752cb4d
cpufreq: speedstep-lib: Use monotonic clock

Wall time obtained from do_gettimeofday is susceptible to sudden jumps due to
user setting the time or due to NTP.

Monotonic time is constantly increasing time better suited for comparing two
timestamps.

Signed-off-by: Abhilash Jindal <klock.android@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/speedstep-lib.c