From: Kai-Heng Feng Date: Tue, 21 Apr 2020 08:21:55 +0000 (+0800) Subject: PM: sleep: core: Switch back to async_schedule_dev() X-Git-Tag: baikal/aarch64/sdk6.1~9474^2~1 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=a368c4bbff7063399f529243492f172148f25895;p=kernel.git PM: sleep: core: Switch back to async_schedule_dev() Commit 3b378c38babb ("PM core: Use new async_schedule_dev command") introduced a new function for better performance. However commit 2e2f9d859d7f ("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: 2e2f9d859d7f ("PM / core: Introduce dpm_async_fn() helper") Signed-off-by: Kai-Heng Feng Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index fdd508a78ffd6..0e07e17c2def3 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; }