[alsa-devel] [PATCH] ASoC: twl6040: Use power efficient workqueue
![](https://secure.gravatar.com/avatar/d930951cb00393ecf9c3db3a56d78fa9.jpg?s=120&d=mm&r=g)
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; }
![](https://secure.gravatar.com/avatar/123ab10b8fc6f08826cd85b4cd86b86c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/be389a1bfb2870dcabd8e3d1251ce76c.jpg?s=120&d=mm&r=g)
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
participants (3)
-
Mark Brown
-
Peter Ujfalusi
-
Viresh Kumar