summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorKai-Heng Feng <kai.heng.feng@canonical.com>2020-04-21 10:21:55 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-04-22 16:36:18 +0200
commit09beebd8f93b3c8bf894e342f0a203a5c612478c (patch)
tree0179e02a15a2535e49373e02212f6863efbf0522 /drivers/base
parentLinux 5.7-rc2 (diff)
downloadlinux-09beebd8f93b3c8bf894e342f0a203a5c612478c.tar.xz
linux-09beebd8f93b3c8bf894e342f0a203a5c612478c.zip
PM: sleep: core: Switch back to async_schedule_dev()
Commit 8b9ec6b73277 ("PM core: Use new async_schedule_dev command") introduced a new function for better performance. However commit f2a424f6c613 ("PM / core: Introduce dpm_async_fn() helper") went back to the non-optimized version, async_schedule(). So switch back to the sync_schedule_dev() to improve performance Fixes: f2a424f6c613 ("PM / core: Introduce dpm_async_fn() helper") Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index fdd508a78ffd..0e07e17c2def 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -730,7 +730,7 @@ static bool dpm_async_fn(struct device *dev, async_func_t func)
if (is_async(dev)) {
get_device(dev);
- async_schedule(func, dev);
+ async_schedule_dev(func, dev);
return true;
}