Skip to content
Commit 54c9a35d authored by Pallipadi, Venkatesh's avatar Pallipadi, Venkatesh Committed by Dave Jones
Browse files

[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: default avatarAlexander Miller <Miller@fmi.uni-stuttgart.de>
Tested-by: default avatarAlexander Miller <Miller@fmi.uni-stuttgart.de>
Signed-off-by: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 8dca15e4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment