diff options
| author | Srivatsa Vaddagiri <vatsa@codeaurora.org> | 2014-08-11 10:21:40 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:26 -0700 |
| commit | d8932ae7df04cb715c5f4214fdbdbddfc8f750c7 (patch) | |
| tree | 09cbf6b434a78703166fb97517005072d2311eb6 /kernel/sysctl.c | |
| parent | 32e4c4a368fed944f7c92a7cb7cf96223b7f599d (diff) | |
sched: window-stats: legacy mode
Support legacy mode, which results in busy time being seen by governor
that is close to what it would have seen via existing APIs i.e
get_cpu_idle_time_us(), get_cpu_iowait_time_us() and
get_cpu_idle_time_jiffy(). In particular, legacy mode means that only
task execution time is counted in rq->curr_runnable_sum and
rq->prev_runnable_sum. Also task migration does not result in
adjustment of those counters.
Change-Id: If374ccc084aa73f77374b6b3ab4cd0a4ca7b8c90
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index be2318bdf4ae..7fbe9b146343 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -310,6 +310,13 @@ static struct ctl_table kern_table[] = { #endif #if defined(CONFIG_SCHED_FREQ_INPUT) || defined(CONFIG_SCHED_HMP) { + .procname = "sched_freq_legacy_mode", + .data = &sysctl_sched_freq_legacy_mode, + .maxlen = sizeof(unsigned int), + .mode = 0644, + .proc_handler = sched_window_update_handler, + }, + { .procname = "sched_account_wait_time", .data = &sysctl_sched_account_wait_time, .maxlen = sizeof(unsigned int), |
