mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
ASoC: jack: Use power efficient workqueue
The accessory detect debounce work is not performance sensitive so let the scheduler run it wherever is most efficient rather than in a per CPU workqueue by using the system power efficient workqueue. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
parent
aac80fa724
commit
53f4614f5d
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ static irqreturn_t gpio_handler(int irq, void *data)
|
||||||
if (device_may_wakeup(dev))
|
if (device_may_wakeup(dev))
|
||||||
pm_wakeup_event(dev, gpio->debounce_time + 50);
|
pm_wakeup_event(dev, gpio->debounce_time + 50);
|
||||||
|
|
||||||
schedule_delayed_work(&gpio->work,
|
queue_delayed_work(system_power_efficient_wq, &gpio->work,
|
||||||
msecs_to_jiffies(gpio->debounce_time));
|
msecs_to_jiffies(gpio->debounce_time));
|
||||||
|
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
|
|
Loading…
Reference in a new issue