aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-18 06:52:17 -0400
committerMark Brown <broonie@linaro.org>2013-07-18 06:58:28 -0400
commitd4e1a73acd4e894f8332f2093bceaef585cfab67 (patch)
tree8b769a600dfaf348fae6d7ec7827efdb5593eeb5
parent64b0c282e87948bc0c5a1b94ca3d4dd9f6415c6f (diff)
ASoC: pcm: Use the power efficient workqueue for delayed powerdown
There is no need to use a normal per-CPU workqueue for delayed power downs as they're not timing or performance critical and waking up a core for them would defeat some of the point. Signed-off-by: Mark Brown <broonie@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
-rw-r--r--sound/soc/soc-pcm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index b6c640332a17..f4f68cb3cb00 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -411,8 +411,9 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
411 } else { 411 } else {
412 /* start delayed pop wq here for playback streams */ 412 /* start delayed pop wq here for playback streams */
413 rtd->pop_wait = 1; 413 rtd->pop_wait = 1;
414 schedule_delayed_work(&rtd->delayed_work, 414 queue_delayed_work(system_power_efficient_wq,
415 msecs_to_jiffies(rtd->pmdown_time)); 415 &rtd->delayed_work,
416 msecs_to_jiffies(rtd->pmdown_time));
416 } 417 }
417 } else { 418 } else {
418 /* capture streams can be powered down now */ 419 /* capture streams can be powered down now */