From: Mark Brown Date: Thu, 18 Jul 2013 21:44:03 +0000 (+0100) Subject: ASoC: twl6040: Use power efficient workqueue X-Git-Tag: next-20130731~55^2~5^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=76394509f579cd4292b076f708da49404be6af37;p=karo-tx-linux.git 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 Acked-by: Viresh Kumar --- 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) 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; }