From d705a44178484d3bc8fe11cb4e3dde4e47e5d146 Mon Sep 17 00:00:00 2001 From: Swetha Chikkaboraiah Date: Tue, 10 Jun 2014 17:31:23 +0530 Subject: [PATCH] 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 Signed-off-by: Raghavendra Ambadas --- drivers/cpufreq/cpu-boost.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;