]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: twl6040: Use power efficient workqueue
authorMark Brown <broonie@linaro.org>
Thu, 18 Jul 2013 21:44:03 +0000 (22:44 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 22 Jul 2013 09:37:51 +0000 (10:37 +0100)
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>
sound/soc/codecs/twl6040.c

index 44621ddc332d881b5e4b05a58507060259446e55..caf8784e77165c7ffeedd3095babbec73e0adfe5 100644 (file)
@@ -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;
 }