ASoC: wm8350: Use power efficient workqueue
authorMark Brown <broonie@linaro.org>
Thu, 18 Jul 2013 21:45:40 +0000 (22:45 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 19 Jul 2013 11:24:30 +0000 (12:24 +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/wm8350.c

index 0e8b3aaf6c8d698e9dad1f25fdccbabc9ee9f1ef..af1318ddb0620e8425b5606a3d794c2b57918078 100644 (file)
@@ -1301,7 +1301,8 @@ static irqreturn_t wm8350_hpl_jack_handler(int irq, void *data)
        if (device_may_wakeup(wm8350->dev))
                pm_wakeup_event(wm8350->dev, 250);
 
-       schedule_delayed_work(&priv->hpl.work, msecs_to_jiffies(200));
+       queue_delayed_work(system_power_efficient_wq,
+                          &priv->hpl.work, msecs_to_jiffies(200));
 
        return IRQ_HANDLED;
 }
@@ -1318,7 +1319,8 @@ static irqreturn_t wm8350_hpr_jack_handler(int irq, void *data)
        if (device_may_wakeup(wm8350->dev))
                pm_wakeup_event(wm8350->dev, 250);
 
-       schedule_delayed_work(&priv->hpr.work, msecs_to_jiffies(200));
+       queue_delayed_work(system_power_efficient_wq,
+                          &priv->hpr.work, msecs_to_jiffies(200));
 
        return IRQ_HANDLED;
 }