* [PATCH] ASoC: twl6040: Use power efficient workqueue
@ 2013-07-18 21:45 Mark Brown
2013-07-19 4:17 ` Viresh Kumar
2013-07-20 9:12 ` Peter Ujfalusi
0 siblings, 2 replies; 3+ messages in thread
From: Mark Brown @ 2013-07-18 21:45 UTC (permalink / raw)
To: peter.ujfalusi, Liam Girdwood; +Cc: alsa-devel, linaro-kernel, Mark Brown
From: Mark Brown <broonie@linaro.org>
The accessory detect debounce work is not performance sensitive so let
the scheduler run it wherever is most efficient rather than in a per CPU
workqueue by using the system power efficient workqueue.
Signed-off-by: Mark Brown <broonie@linaro.org>
---
sound/soc/codecs/twl6040.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c
index 44621dd..caf8784 100644
--- a/sound/soc/codecs/twl6040.c
+++ b/sound/soc/codecs/twl6040.c
@@ -429,7 +429,8 @@ static irqreturn_t twl6040_audio_handler(int irq, void *data)
struct snd_soc_codec *codec = data;
struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec);
- schedule_delayed_work(&priv->hs_jack.work, msecs_to_jiffies(200));
+ queue_delayed_work(system_power_efficient_wq,
+ &priv->hs_jack.work, msecs_to_jiffies(200));
return IRQ_HANDLED;
}
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: twl6040: Use power efficient workqueue
2013-07-18 21:45 [PATCH] ASoC: twl6040: Use power efficient workqueue Mark Brown
@ 2013-07-19 4:17 ` Viresh Kumar
2013-07-20 9:12 ` Peter Ujfalusi
1 sibling, 0 replies; 3+ messages in thread
From: Viresh Kumar @ 2013-07-19 4:17 UTC (permalink / raw)
To: Mark Brown
Cc: peter.ujfalusi, alsa-devel, linaro-kernel, Liam Girdwood,
Mark Brown
On 19 July 2013 03:15, Mark Brown <broonie@kernel.org> wrote:
> From: Mark Brown <broonie@linaro.org>
>
> The accessory detect debounce work is not performance sensitive so let
> the scheduler run it wherever is most efficient rather than in a per CPU
> workqueue by using the system power efficient workqueue.
>
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
> sound/soc/codecs/twl6040.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: twl6040: Use power efficient workqueue
2013-07-18 21:45 [PATCH] ASoC: twl6040: Use power efficient workqueue Mark Brown
2013-07-19 4:17 ` Viresh Kumar
@ 2013-07-20 9:12 ` Peter Ujfalusi
1 sibling, 0 replies; 3+ messages in thread
From: Peter Ujfalusi @ 2013-07-20 9:12 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, linaro-kernel, Liam Girdwood, Mark Brown
On 07/18/2013 11:45 PM, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
>
> The accessory detect debounce work is not performance sensitive so let
> the scheduler run it wherever is most efficient rather than in a per CPU
> workqueue by using the system power efficient workqueue.
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-20 9:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-18 21:45 [PATCH] ASoC: twl6040: Use power efficient workqueue Mark Brown
2013-07-19 4:17 ` Viresh Kumar
2013-07-20 9:12 ` Peter Ujfalusi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).