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)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:22 +0000 (14:16 -0700)
commitfb117edf60e2c1e58f28859387d8bf2669a66907
tree581e98130f5ba397811355a1ce1a2e6e4c707c7a
parenta9dbf84177001c60ffa973bd1d7d0cfc97d165c6
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