From: Mark Brown Date: Thu, 18 Jul 2013 10:52:17 +0000 (+0100) Subject: ASoC: pcm: Use the power efficient workqueue for delayed powerdown X-Git-Tag: accepted/tizen/common/20141203.182822~1038^2~168^2~3^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4e1a73acd4e894f8332f2093bceaef585cfab67;p=platform%2Fkernel%2Flinux-arm64.git 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 Reviewed-by: Viresh Kumar --- diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index b6c6403..f4f68cb 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) } else { /* start delayed pop wq here for playback streams */ rtd->pop_wait = 1; - schedule_delayed_work(&rtd->delayed_work, - msecs_to_jiffies(rtd->pmdown_time)); + queue_delayed_work(system_power_efficient_wq, + &rtd->delayed_work, + msecs_to_jiffies(rtd->pmdown_time)); } } else { /* capture streams can be powered down now */