From f117dea08fbaf057637529f2c15eba83f0f7deaa Mon Sep 17 00:00:00 2001 From: Rohit Gupta Date: Thu, 13 Mar 2014 20:57:32 -0700 Subject: 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 --- drivers/cpufreq/cpu-boost.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3