diff options
| author | Yangtao Li <[email protected]> | 2019-03-16 04:59:25 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2019-04-10 08:03:22 +0000 |
| commit | f2a424f6c613a98560dc49fd9984589401d51648 (patch) | |
| tree | c0b236133992b2d6074215ba8cfc6bc14573345c /lib/timerqueue.c | |
| parent | PM / core: fix kerneldoc comment for device_pm_wait_for_dev() (diff) | |
| download | kernel-f2a424f6c613a98560dc49fd9984589401d51648.tar.gz kernel-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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
