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>
This commit is contained in:
parent
e6d5539f2e
commit
d705a44178
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue