extcon: adc-jack: Use power efficient workqueue
authorMark Brown <broonie@linaro.org>
Fri, 19 Jul 2013 17:47:35 +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-adc-jack.c

index d0233cd..5985807 100644 (file)
@@ -87,7 +87,8 @@ static irqreturn_t adc_jack_irq_thread(int irq, void *_data)
 {
        struct adc_jack_data *data = _data;
 
-       schedule_delayed_work(&data->handler, data->handling_delay);
+       queue_delayed_work(system_power_efficient_wq,
+                          &data->handler, data->handling_delay);
        return IRQ_HANDLED;
 }