extcon: gpio: Use power efficient workqueue for debounce
authorMark Brown <broonie@linaro.org>
Fri, 19 Jul 2013 17:47:34 +0000 (18:47 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Sun, 4 Aug 2013 23:53:34 +0000 (08:53 +0900)
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>
drivers/extcon/extcon-gpio.c

index 02bec32adde4bee5bb30a9ff385929d9f8ccb5d2..f874c30ddbff0a0bb51949d7aa2de90c67c7227b 100644 (file)
@@ -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;
 }
This page took 0.031903 seconds and 5 git commands to generate.