Skip to content

Commit

Permalink
PM: sleep: core: Switch back to async_schedule_dev()
Browse files Browse the repository at this point in the history
Commit 8b9ec6b ("PM core: Use new async_schedule_dev command")
introduced a new function for better performance.

However commit f2a424f ("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: f2a424f ("PM / core: Introduce dpm_async_fn() helper")
Signed-off-by: Kai-Heng Feng <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
khfeng authored and rafaeljw committed Apr 22, 2020
1 parent ae83d0b commit 09beebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 09beebd

Please sign in to comment.