From: Mark Brown Date: Thu, 18 Jul 2013 21:46:46 +0000 (+0100) Subject: ASoC: wm8962: Use power efficient workqueue X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=da72c9619f4df033d431a0a4cee715cf14c78433;p=linux-beck.git ASoC: wm8962: 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/wm8962.c b/sound/soc/codecs/wm8962.c index 8b8905dfc510..36782f067cc5 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3044,8 +3044,9 @@ static irqreturn_t wm8962_irq(int irq, void *data) pm_wakeup_event(dev, 300); - schedule_delayed_work(&wm8962->mic_work, - msecs_to_jiffies(250)); + queue_delayed_work(system_power_efficient_wq, + &wm8962->mic_work, + msecs_to_jiffies(250)); } return IRQ_HANDLED;