From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH] ASoC: compress: Use power efficient workqueue Date: Mon, 12 Aug 2013 09:26:38 +0530 Message-ID: <20130812035638.GT29095@intel.com> References: <1376068931-15520-1-git-send-email-broonie@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by alsa0.perex.cz (Postfix) with ESMTP id D794E2602C6 for ; Mon, 12 Aug 2013 06:38:31 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1376068931-15520-1-git-send-email-broonie@kernel.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: alsa-devel@alsa-project.org, linaro-kernel@lists.linaro.org, Liam Girdwood , Mark Brown List-Id: alsa-devel@alsa-project.org On Fri, Aug 09, 2013 at 06:22:11PM +0100, Mark Brown wrote: > From: Mark Brown > > 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 Acked-by: Vinod Koul 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 > --