]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit821e65195d36c5cb808acafc893cdbb649eee9ad
tree5752040aa7d5293ce0aa33a122f9900aa1f0fb63
parent3b1fc87fa3d4c440571c99606b5a8ae53914a4bb
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