Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Mark Brown <broonie@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Liam Girdwood <liam.r.girdwood@intel.com>

+3 -2
+3 -2
drivers/regulator/core.c
··· 1890 1890 rdev->deferred_disables++; 1891 1891 mutex_unlock(&rdev->mutex); 1892 1892 1893 - ret = schedule_delayed_work(&rdev->disable_work, 1894 - msecs_to_jiffies(ms)); 1893 + ret = queue_delayed_work(system_power_efficient_wq, 1894 + &rdev->disable_work, 1895 + msecs_to_jiffies(ms)); 1895 1896 if (ret < 0) 1896 1897 return ret; 1897 1898 else