ASoC: sta32x: Use power efficient workqueue
Mark Brown
maintainerPATCH 1/1 ASoC: sta32x: Use power efficient workqueue
From: Mark Brown <[email protected]>
None of the delayed work the driver schedules has particularly short delays and it 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 <[email protected]>
--- sound/soc/codecs/sta32x.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
sound/soc/codecs/sta32x.c +6 -4
@@ -363,16 +363,18 @@ static void sta32x_watchdog(struct work_struct *work) }if (!sta32x->shutdown) -schedule_delayed_work (&sta32x->watchdog_work, -round_jiffies_relative (HZ )); +queue_delayed_work (system_power_efficient_wq, + &sta32x->watchdog_work, +round_jiffies_relative (HZ )); }static void sta32x_watchdog_start (struct sta32x_priv *sta32x) {if (sta32x->pdata->needs_esd_watchdog) { sta32x->shutdown =0 ; -schedule_delayed_work (&sta32x->watchdog_work, -round_jiffies_relative (HZ )); +queue_delayed_work (system_power_efficient_wq, + &sta32x->watchdog_work, +round_jiffies_relative (HZ )); } }
Signature · 1 line
1.8.3.2
Quoted 11 lines · Mark Brown
From: Mark Brown <[email protected]>
None of the delayed work the driver schedules has particularly short delays and it 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 <[email protected]>--- sound/soc/codecs/sta32x.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
Acked-by Viresh Kumar <[email protected]>