diff options
author | 2019-03-16 00:59:25 -0400 | |
---|---|---|
committer | 2019-04-10 10:03:22 +0200 | |
commit | f2a424f6c613a98560dc49fd9984589401d51648 (patch) | |
tree | c0b236133992b2d6074215ba8cfc6bc14573345c /scripts/gen_compile_commands.py | |
parent | PM / core: fix kerneldoc comment for device_pm_wait_for_dev() (diff) | |
download | linux-dev-f2a424f6c613a98560dc49fd9984589401d51648.tar.xz linux-dev-f2a424f6c613a98560dc49fd9984589401d51648.zip |
PM / core: Introduce dpm_async_fn() helper
When we want to execute device pm functions asynchronously, we'll
do the following for the device:
1) reinit_completion(&dev->power.completion);
2) Check if the device enables asynchronous suspend.
3) If necessary, execute the corresponding function asynchronously.
There are a lot of such repeated operations here, in fact we can avoid
this. So introduce dpm_async_fn() to have better code readability and
reuse.
And use this function to do some cleanup.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions