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

Commit 070260f0 authored by Mark Brown's avatar Mark Brown
Browse files

regulator: core: Use the power efficient workqueue for delayed powerdown



There is no need to use a normal per-CPU workqueue for delayed power downs
as they're not timing or performance critical and waking up a core for them
would defeat some of the point.

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: default avatarLiam Girdwood <liam.r.girdwood@intel.com>
parent 891636ea
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1890,7 +1890,8 @@ int regulator_disable_deferred(struct regulator *regulator, int ms)
	rdev->deferred_disables++;
	mutex_unlock(&rdev->mutex);

	ret = schedule_delayed_work(&rdev->disable_work,
	ret = queue_delayed_work(system_power_efficient_wq,
				 &rdev->disable_work,
				 msecs_to_jiffies(ms));
	if (ret < 0)
		return ret;