diff options
| author | Swetha Chikkaboraiah <schikk@codeaurora.org> | 2014-06-10 17:31:23 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 19:58:49 -0700 |
| commit | d705a44178484d3bc8fe11cb4e3dde4e47e5d146 (patch) | |
| tree | 4f34db3c56df3e4e71e74537321f61f7b5477fe6 | |
| parent | e6d5539f2e382b1ed8d9bd00068ce85a7d33e4de (diff) | |
cpufreq: cpu-boost: Use interruptible wait to not affect load average
Using the function wait_event in cpu_boost puts the
process enter to 'D' state which contribute to the
high load average. This change will put the process
boost_sync in the 'S' state (interruptible sleep)
Change-Id: Ie121adbe1fac1d2862ac5342bb97c7c926f7d7a8
CRs-Fixed: 655484
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
| -rw-r--r-- | drivers/cpufreq/cpu-boost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpu-boost.c b/drivers/cpufreq/cpu-boost.c index 3bd705812543..641752a1350c 100644 --- a/drivers/cpufreq/cpu-boost.c +++ b/drivers/cpufreq/cpu-boost.c @@ -149,7 +149,8 @@ static int boost_mig_sync_thread(void *data) unsigned int req_freq; while (1) { - wait_event(s->sync_wq, s->pending || kthread_should_stop()); + wait_event_interruptible(s->sync_wq, + s->pending || kthread_should_stop()); if (kthread_should_stop()) break; |
