diff options
| author | Steve Muckle <smuckle@codeaurora.org> | 2014-06-12 12:14:15 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 19:59:32 -0700 |
| commit | 476ea8d45d158e099622ed6633e7dfabbcf56e53 (patch) | |
| tree | 0dd7fa8a98e4148b718cfce5d8e0f5faf41b39a8 /kernel/sysctl.c | |
| parent | a536cf8ac858ac8388272d98f9baf8e7ba25b646 (diff) | |
sched: notify cpufreq on over/underprovisioned CPUs
After a migration occurs the source and destination CPUs may
not be running at frequencies which match the new task load on
those CPUs.
Previously, the scheduler was notifying cpufreq anytime a task
greater than a certain size migrates. This is suboptimal however
since this does not take into account the CPU's current
frequency and other task activity that may be present.
Change-Id: I5092bda3a517e1343f97e5a455957c25ee19b549
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 66fc408900c2..cdc63fb78433 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -294,11 +294,18 @@ static struct ctl_table kern_table[] = { }, #ifdef CONFIG_SCHED_FREQ_INPUT { - .procname = "sched_task_migrate_notify", - .data = &sysctl_sched_task_migrate_notify_pct, + .procname = "sched_freq_inc_notify_slack_pct", + .data = &sysctl_sched_freq_inc_notify_slack_pct, .maxlen = sizeof(unsigned int), .mode = 0644, - .proc_handler = sched_migrate_notify_proc_handler, + .proc_handler = proc_dointvec, + }, + { + .procname = "sched_freq_dec_notify_slack_pct", + .data = &sysctl_sched_freq_dec_notify_slack_pct, + .maxlen = sizeof(unsigned int), + .mode = 0644, + .proc_handler = proc_dointvec, }, #endif #if defined(CONFIG_SCHED_FREQ_INPUT) || defined(CONFIG_SCHED_HMP) |
