diff options
author | Mark Brown <broonie@linaro.org> | 2013-07-18 22:44:03 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-19 12:24:17 +0100 |
commit | 76394509f579cd4292b076f708da49404be6af37 (patch) | |
tree | 831ecd909a3bc1a18df7ed2ca19cacf46a7a43b1 | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) | |
download | op-kernel-dev-76394509f579cd4292b076f708da49404be6af37.zip op-kernel-dev-76394509f579cd4292b076f708da49404be6af37.tar.gz |
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>
-rw-r--r-- | sound/soc/codecs/twl6040.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |