ASoC: wm8962: 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
444fc4b369
commit
da72c9619f
1 changed files with 3 additions and 2 deletions
|
@ -3044,8 +3044,9 @@ static irqreturn_t wm8962_irq(int irq, void *data)
|
||||||
|
|
||||||
pm_wakeup_event(dev, 300);
|
pm_wakeup_event(dev, 300);
|
||||||
|
|
||||||
schedule_delayed_work(&wm8962->mic_work,
|
queue_delayed_work(system_power_efficient_wq,
|
||||||
msecs_to_jiffies(250));
|
&wm8962->mic_work,
|
||||||
|
msecs_to_jiffies(250));
|
||||||
}
|
}
|
||||||
|
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
|
|
Loading…
Add table
Reference in a new issue