From 476ea8d45d158e099622ed6633e7dfabbcf56e53 Mon Sep 17 00:00:00 2001 From: Steve Muckle Date: Thu, 12 Jun 2014 12:14:15 -0700 Subject: 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 --- kernel/sysctl.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'kernel/sysctl.c') 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) -- cgit v1.2.3