diff options
author | Stratos Karafotis <stratosk@semaphore.gr> | 2013-02-28 16:57:32 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-01 01:11:35 +0200 |
commit | 9366d84052e7c5b2eca804c08cfcd00b490f4de2 (patch) | |
tree | 0f159a425d29f1c6be12dbf30f18a55b79ae72d2 /Documentation/cpu-freq | |
parent | fed573d5c91ab8f12801740cfac0567e33635b1e (diff) | |
download | op-kernel-dev-9366d84052e7c5b2eca804c08cfcd00b490f4de2.zip op-kernel-dev-9366d84052e7c5b2eca804c08cfcd00b490f4de2.tar.gz |
cpufreq: governors: Calculate iowait time only when necessary
Currently we always calculate the CPU iowait time and add it to idle time.
If we are in ondemand and we use io_is_busy, we re-calculate iowait time
and we subtract it from idle time.
With this patch iowait time is calculated only when necessary avoiding
the double call to get_cpu_iowait_time_us. We use a parameter in
function get_cpu_idle_time to distinguish when the iowait time will be
added to idle time or not, without the need of keeping the prev_io_wait.
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.,org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/cpu-freq')
0 files changed, 0 insertions, 0 deletions