diff options
author | Mark Brown <broonie@linaro.org> | 2013-07-18 06:52:04 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-18 07:01:51 -0400 |
commit | 070260f07c7daec311f2466eb9d1df475d5a46f8 (patch) | |
tree | 50cf1dbc9631538873982ef5717a67fb968aad27 | |
parent | 891636ea27ef42d92a420185d2ccbe190ba00a23 (diff) |
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>
-rw-r--r-- | drivers/regulator/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 1510333bcf0d..f49c6615dc37 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -1890,8 +1890,9 @@ int regulator_disable_deferred(struct regulator *regulator, int ms) | |||
1890 | rdev->deferred_disables++; | 1890 | rdev->deferred_disables++; |
1891 | mutex_unlock(&rdev->mutex); | 1891 | mutex_unlock(&rdev->mutex); |
1892 | 1892 | ||
1893 | ret = schedule_delayed_work(&rdev->disable_work, | 1893 | ret = queue_delayed_work(system_power_efficient_wq, |
1894 | msecs_to_jiffies(ms)); | 1894 | &rdev->disable_work, |
1895 | msecs_to_jiffies(ms)); | ||
1895 | if (ret < 0) | 1896 | if (ret < 0) |
1896 | return ret; | 1897 | return ret; |
1897 | else | 1898 | else |