[CPUFREQ] Resolve time unit thinko in ondemand/conservative govs
authorPallipadi, Venkatesh <venkatesh.pallipadi@intel.com>
Thu, 12 Nov 2009 00:50:29 +0000 (16:50 -0800)
committerMatt Sealey <matt@genesi-usa.com>
Tue, 22 Feb 2011 01:58:20 +0000 (19:58 -0600)
commit3ccebe36653085a95997be170c27bb4c116b75ec
tree3b1a8fa64dda8d6e798a69de5a450ca24c9b6aea
parentaffb43356d7558e48e4783dcc95ebb105f951e18
[CPUFREQ] Resolve time unit thinko in ondemand/conservative govs

ondemand and conservative governors are messing up time units in the
code path where NO_HZ is not enabled and ignore_nice is set. The walltime
idletime stored is in jiffies and nice time calculation is happening in
microseconds.

The problem was reported and diagnosed by Alexander here.
http://marc.info/?l=linux-kernel&m=125752550404513&w=2

The patch below fixes this thinko.

Reported-by: Alexander Miller <Miller@fmi.uni-stuttgart.de>
Tested-by: Alexander Miller <Miller@fmi.uni-stuttgart.de>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
(cherry picked from commit 54c9a35d9faef06e00e2a941eb8fe674f1886901)
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_ondemand.c