From: Mark Brown Date: Fri, 19 Jul 2013 17:47:34 +0000 (+0100) Subject: extcon: gpio: Use power efficient workqueue for debounce X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d0db2e7ae788d84ff6d0a1cd4dc935282db29073;p=deliverable%2Flinux.git 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 Acked-by: Viresh Kumar Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c index 02bec32adde4..f874c30ddbff 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; }