aboutsummaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-18 22:47:10 +0100
committerMoyster <oysterized@gmail.com>2016-08-26 20:22:07 +0200
commit95b4480893be5af52ed59f16b8bb753ff4b1f9f0 (patch)
tree68ae10bf1c0155a64111b204b0dc1e6fcd00aa86 /sound/soc
parente6ac55e00e57c6066acb9a82b59e5c3df49532c0 (diff)
ASoC: jack: 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> (cherry picked from commit e6058aaadcd473e5827720dc143af56aabbeecc7) Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-jack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c
index 0bb5cccd7..7aa26b517 100644
--- a/sound/soc/soc-jack.c
+++ b/sound/soc/soc-jack.c
@@ -263,7 +263,7 @@ static irqreturn_t gpio_handler(int irq, void *data)
if (device_may_wakeup(dev))
pm_wakeup_event(dev, gpio->debounce_time + 50);
- schedule_delayed_work(&gpio->work,
+ queue_delayed_work(system_power_efficient_wq, &gpio->work,
msecs_to_jiffies(gpio->debounce_time));
return IRQ_HANDLED;