diff options
author | Mark Brown <broonie@linaro.org> | 2013-07-18 17:46:46 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-22 06:10:24 -0400 |
commit | da72c9619f4df033d431a0a4cee715cf14c78433 (patch) | |
tree | b3eae9378921d92ebe6a77eca9be4d8bfb99b952 | |
parent | 444fc4b369f9341d2cbcffe2d1ffde4cad5b4945 (diff) |
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 <broonie@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
-rw-r--r-- | sound/soc/codecs/wm8962.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
3044 | 3044 | ||
3045 | pm_wakeup_event(dev, 300); | 3045 | pm_wakeup_event(dev, 300); |
3046 | 3046 | ||
3047 | schedule_delayed_work(&wm8962->mic_work, | 3047 | queue_delayed_work(system_power_efficient_wq, |
3048 | msecs_to_jiffies(250)); | 3048 | &wm8962->mic_work, |
3049 | msecs_to_jiffies(250)); | ||
3049 | } | 3050 | } |
3050 | 3051 | ||
3051 | return IRQ_HANDLED; | 3052 | return IRQ_HANDLED; |