]> 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)
commit470bafaed602c19afa1de47ee79566a91691768b
tree5752040aa7d5293ce0aa33a122f9900aa1f0fb63
parent2660b084b1fcfb3758fc4540cc590d3de0ae531c
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