Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2df7c6aa authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: max98090: Use power efficient workqueue



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: default avatarMark Brown <broonie@linaro.org>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent ad81f054
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -2084,7 +2084,8 @@ static irqreturn_t max98090_interrupt(int irq, void *data)

		pm_wakeup_event(codec->dev, 100);

		schedule_delayed_work(&max98090->jack_work,
		queue_delayed_work(system_power_efficient_wq,
				   &max98090->jack_work,
				   msecs_to_jiffies(100));
	}

@@ -2132,7 +2133,8 @@ int max98090_mic_detect(struct snd_soc_codec *codec,
	snd_soc_jack_report(max98090->jack, 0,
			    SND_JACK_HEADSET | SND_JACK_BTN_0);

	schedule_delayed_work(&max98090->jack_work,
	queue_delayed_work(system_power_efficient_wq,
			   &max98090->jack_work,
			   msecs_to_jiffies(100));

	return 0;