summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohit Gupta <rohgup@codeaurora.org>2014-03-13 20:57:32 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:58:47 -0700
commitf117dea08fbaf057637529f2c15eba83f0f7deaa (patch)
treeb5dbfd6a74aca4566e0d58b9deb1e8eb6a2bcf19
parent48056d2399dfc6aead29a8a10aa9fd5e93ed00be (diff)
cpufreq: cpu-boost: Handle wakeup hints received for foreground tasks
A previous change modifies the notification conditions in the scheduler to call the notifier chain even on foreground_thread wakeups for tasks having load more than a threshold value. If load_based_syncs is turned OFF then we do not need to perform cpu boost for wakeup hints for foreground tasks from scheduler Change-Id: Ifbdd3eccac5c9892dfc3a3c3edbfc0df766478ed Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
-rw-r--r--drivers/cpufreq/cpu-boost.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpu-boost.c b/drivers/cpufreq/cpu-boost.c
index 5a934122277b..617239cbfdea 100644
--- a/drivers/cpufreq/cpu-boost.c
+++ b/drivers/cpufreq/cpu-boost.c
@@ -212,6 +212,9 @@ static int boost_migration_notify(struct notifier_block *nb,
return NOTIFY_OK;
}
+ if (!load_based_syncs && (mnd->src_cpu == mnd->dest_cpu))
+ return NOTIFY_OK;
+
if (!boost_ms)
return NOTIFY_OK;