cpufreq: interactive: add io_is_busy interface
authorLianwei Wang <lian-wei.wang@motorola.com>
Fri, 22 Feb 2013 03:39:18 +0000 (11:39 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:53 +0000 (13:52 -0800)
commit6b2fd6c4f23cbeb7ce522b833c26e86848ad3dc9
tree98074b9ceceaefac0c4298065a8d33fe942e2432
parentc9d7bc6364eab675ab5b6c390570f03a97c30300
cpufreq: interactive: add io_is_busy interface

Previously the idle time returned from get_cpu_idle_time_us included the
iowait time. So the iowait time was always calculated as idle time.

But now the idle time returned from get_cpu_idle_time_us does not include
the iowait time anymore because of below commit which cause the iowait time
always calculated as busy time:
    6beea0c nohz: Fix update_ts_time_stat idle accounting

Add the io_is_busy interface, as does the ondemand governor, and let the user
configure the iowait time as busy or idle through the io_is_busy sysfs
interface.

By default, io_is_busy is disabled.

[toddpoynor@google.com: minor updates]
Change-Id: If7d70ff864c43bc9c8d7fd7cfc66f930d339f9b4
Signed-off-by: Lianwei Wang <lian-wei.wang@motorola.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/cpufreq/cpufreq_interactive.c