ASoC: pcm: Use the power efficient workqueue for delayed powerdown
Mark Brown
maintainerPATCH 1/1 ASoC: pcm: Use the power efficient workqueue for delayed powerdown
From: Mark Brown <[email protected]>
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.
--- sound/soc/soc-pcm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/soc-pcm.c +3 -2
@@ -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 */
Signature · 1 line
1.8.3.2
Quoted 17 lines · Mark Brown
From: Mark Brown <[email protected]>
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 <[email protected]>--- sound/soc/soc-pcm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)sound/soc/soc-pcm.c +0
-0@@ -411,8 +411,9 @@ static int soc_pcm_close(struct snd_pcm_substream *substream) }else {
sound/soc/soc-pcm.c static int soc_pcm_close(struct snd_pcm_substream *substream) · line 419
Quoted 10 lines
sound/soc/soc-pcm.c +3
-2/* 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 */
Quoted 7 lines · Mark Brown
From: Mark Brown <[email protected]>
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 <[email protected]>
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.