]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq: fix jiffies/cputime mixup in conservative/ondemand governors
authorAndreas Schwab <schwab@linux-m68k.org>
Wed, 24 Oct 2012 20:16:34 +0000 (22:16 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Oct 2012 20:16:34 +0000 (22:16 +0200)
commit91f347cd81cf52ed57c64a53731aaae207341729
treeffd2ce11c410b65e29598151e83e5dedbe249cdf
parenta0ef50dd3188803d5714aaa381df847c4370a1de
cpufreq: fix jiffies/cputime mixup in conservative/ondemand governors

The function get_cpu_idle_time_jiffy in both the conservative and
ondemand governors use jiffies_to_usecs to convert a cputime value to
usecs which gives the wrong value on architectures where cputime and
jiffies use different units.  Only matters if NO_HZ is disabled, since
otherwise get_cpu_idle_time_us should already return a valid value, and
get_cpu_idle_time_jiffy isn't actually called.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_governor.c