From: Mark Brown Date: Fri, 19 Jul 2013 17:47:35 +0000 (+0100) Subject: extcon: adc-jack: Use power efficient workqueue X-Git-Tag: firefly_0821_release~3680^2~158^2~9^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df08b04c9a3f2925e34f778bf20d37623635c306;p=firefly-linux-kernel-4.4.55.git extcon: adc-jack: Use power efficient workqueue 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 Acked-by: Viresh Kumar Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham (cherry picked from commit 1a82e81e0ede6955684397ffbc0964191ef13cba) --- diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c index d0233cd18ffa..5985807e52c9 100644 --- a/drivers/extcon/extcon-adc-jack.c +++ b/drivers/extcon/extcon-adc-jack.c @@ -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; }