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

index 8b8905dfc510170bf1496e2c183e09130e0b7f4f..36782f067cc589d7c49f08c264ad4d474fe3bd49 100644 (file)
@@ -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;