From: Stratos Karafotis Date: Thu, 28 Feb 2013 16:57:32 +0000 (+0000) Subject: cpufreq: governors: Calculate iowait time only when necessary X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~92^2~1^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9366d84052e7c5b2eca804c08cfcd00b490f4de2;p=pandora-kernel.git 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 Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed