提交 09beebd8 编写于 作者: K Kai-Heng Feng 提交者: Rafael J. Wysocki

PM: sleep: core: Switch back to async_schedule_dev()

Commit 8b9ec6b7 ("PM core: Use new async_schedule_dev command")
introduced a new function for better performance.

However commit f2a424f6 ("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: f2a424f6 ("PM / core: Introduce dpm_async_fn() helper")
Signed-off-by: NKai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 ae83d0b4
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册