aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-19 18:47:34 +0100
committerChanwoo Choi <cw00.choi@samsung.com>2013-08-05 08:53:34 +0900
commitd0db2e7ae788d84ff6d0a1cd4dc935282db29073 (patch)
treea014be5856a862a572394ad008f12231033f834d
parentdf9a5ab46332b58a0ce8877fe65c7e98b9f36e8a (diff)
downloadkernel_goldelico_gta04-d0db2e7ae788d84ff6d0a1cd4dc935282db29073.zip
kernel_goldelico_gta04-d0db2e7ae788d84ff6d0a1cd4dc935282db29073.tar.gz
kernel_goldelico_gta04-d0db2e7ae788d84ff6d0a1cd4dc935282db29073.tar.bz2
extcon: gpio: Use power efficient workqueue for debounce
The debounce timeout is generally quite long and the work not performance critical so allow the scheduler to run the work anywhere rather than in the normal per-CPU workqueue. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
-rw-r--r--drivers/extcon/extcon-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c
index 02bec32..f874c30 100644
--- a/drivers/extcon/extcon-gpio.c
+++ b/drivers/extcon/extcon-gpio.c
@@ -56,7 +56,7 @@ static irqreturn_t gpio_irq_handler(int irq, void *dev_id)
{
struct gpio_extcon_data *extcon_data = dev_id;
- schedule_delayed_work(&extcon_data->work,
+ queue_delayed_work(system_power_efficient_wq, &extcon_data->work,
extcon_data->debounce_jiffies);
return IRQ_HANDLED;
}