diff options
| author | Olav Haugan <ohaugan@codeaurora.org> | 2014-08-07 18:24:21 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:19 -0700 |
| commit | 8eede4a8d50a1d4e7203a4bbaa3209ddf346c985 (patch) | |
| tree | 89ab46834e4014d61a28f2d75efebc5e435563a4 /kernel/sysctl.c | |
| parent | 778ce1a13c3f199fc44c53078fc2419075b9a0b8 (diff) | |
sched: Make RAVG_HIST_SIZE tunable
Make RAVG_HIST_SIZE available from /proc/sys/kernel/sched_ravg_hist_size
to allow tuning of the size of the history that is used in computation
of task demand.
CRs-fixed: 706138
Change-Id: Id54c1e4b6e974a62d787070a0af1b4e8ce3b4be6
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
[joonwoop@codeaurora.org: fixed minor conflict in sysctl.h]
Signed-off-by: Joonwoo Park <joonwoop@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 cbdeb753f1c4..e67ec03d9a97 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -317,6 +317,13 @@ static struct ctl_table kern_table[] = { .proc_handler = sched_acct_wait_time_update_handler, }, { + .procname = "sched_ravg_hist_size", + .data = &sysctl_sched_ravg_hist_size, + .maxlen = sizeof(unsigned int), + .mode = 0644, + .proc_handler = sched_ravg_hist_size_update_handler, + }, + { .procname = "sched_window_stats_policy", .data = &sysctl_sched_window_stats_policy, .maxlen = sizeof(unsigned int), |
