aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/twl6040.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-18 17:44:03 -0400
committerMark Brown <broonie@linaro.org>2013-07-22 05:37:51 -0400
commita06e427d088d8a9b81defd42e6bae5f1cd69fc3f (patch)
tree831ecd909a3bc1a18df7ed2ca19cacf46a7a43b1 /sound/soc/codecs/twl6040.c
parentad81f0545ef01ea651886dddac4bef6cec930092 (diff)
ASoC: twl6040: Use power efficient workqueue
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> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Diffstat (limited to 'sound/soc/codecs/twl6040.c')
-rw-r--r--sound/soc/codecs/twl6040.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c
index 44621ddc332d..caf8784e7716 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)
429 struct snd_soc_codec *codec = data; 429 struct snd_soc_codec *codec = data;
430 struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec); 430 struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec);
431 431
432 schedule_delayed_work(&priv->hs_jack.work, msecs_to_jiffies(200)); 432 queue_delayed_work(system_power_efficient_wq,
433 &priv->hs_jack.work, msecs_to_jiffies(200));
433 434
434 return IRQ_HANDLED; 435 return IRQ_HANDLED;
435} 436}