diff options
author | Mark Brown <broonie@linaro.org> | 2013-07-18 17:47:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-19 07:08:31 -0400 |
commit | e6058aaadcd473e5827720dc143af56aabbeecc7 (patch) | |
tree | 3cf7841af8e380a994ee8334571dc30a0a35fb1a /sound/soc/soc-jack.c | |
parent | d4e1a73acd4e894f8332f2093bceaef585cfab67 (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>
Diffstat (limited to 'sound/soc/soc-jack.c')
-rw-r--r-- | sound/soc/soc-jack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 0bb5cccd7766..7aa26b5178aa 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) | |||
263 | if (device_may_wakeup(dev)) | 263 | if (device_may_wakeup(dev)) |
264 | pm_wakeup_event(dev, gpio->debounce_time + 50); | 264 | pm_wakeup_event(dev, gpio->debounce_time + 50); |
265 | 265 | ||
266 | schedule_delayed_work(&gpio->work, | 266 | queue_delayed_work(system_power_efficient_wq, &gpio->work, |
267 | msecs_to_jiffies(gpio->debounce_time)); | 267 | msecs_to_jiffies(gpio->debounce_time)); |
268 | 268 | ||
269 | return IRQ_HANDLED; | 269 | return IRQ_HANDLED; |