All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: compress: Use power efficient workqueue
@ 2013-08-09 17:22 Mark Brown
  2013-08-12  3:56 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2013-08-09 17:22 UTC (permalink / raw)
  To: Vinod Koul, Liam Girdwood; +Cc: alsa-devel, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

There is no need for the power down work to be done on a per CPU workqueue
especially considering the fairly long delay before powerdown.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 sound/soc/soc-compress.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c
index d220150..53c9ecd 100644
--- a/sound/soc/soc-compress.c
+++ b/sound/soc/soc-compress.c
@@ -149,8 +149,9 @@ static int soc_compr_free(struct snd_compr_stream *cstream)
 					SND_SOC_DAPM_STREAM_STOP);
 		} else {
 			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 */
-- 
1.8.4.rc1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: compress: Use power efficient workqueue
  2013-08-09 17:22 [PATCH] ASoC: compress: Use power efficient workqueue Mark Brown
@ 2013-08-12  3:56 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2013-08-12  3:56 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, linaro-kernel, Liam Girdwood, Mark Brown

On Fri, Aug 09, 2013 at 06:22:11PM +0100, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
> 
> There is no need for the power down work to be done on a per CPU workqueue
> especially considering the fairly long delay before powerdown.
> 
> Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>

Thanks
~Vinod
> ---
>  sound/soc/soc-compress.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c
> index d220150..53c9ecd 100644
> --- a/sound/soc/soc-compress.c
> +++ b/sound/soc/soc-compress.c
> @@ -149,8 +149,9 @@ static int soc_compr_free(struct snd_compr_stream *cstream)
>  					SND_SOC_DAPM_STREAM_STOP);
>  		} else {
>  			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 */
> -- 
> 1.8.4.rc1
> 

-- 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-12  4:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-09 17:22 [PATCH] ASoC: compress: Use power efficient workqueue Mark Brown
2013-08-12  3:56 ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.