diff options
| author | Rafael J. Wysocki <[email protected]> | 2025-07-09 10:41:45 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-07-15 13:03:25 +0000 |
| commit | 51888393cc64dd0462d0b96c13ab94873abbc030 (patch) | |
| tree | 913c47c3fc478d7148ae674c844a4a42ea1e5a59 /lib/crypto/mpi/mpi-mul.c | |
| parent | Documentation: PM: *_autosuspend() functions update last busy time (diff) | |
| download | kernel-51888393cc64dd0462d0b96c13ab94873abbc030.tar.gz kernel-51888393cc64dd0462d0b96c13ab94873abbc030.zip | |
PM: runtime: Take active children into account in pm_runtime_get_if_in_use()
For all practical purposes, there is no difference between the situation
in which a given device is not ignoring children and its active child
count is nonzero and the situation in which its runtime PM usage counter
is nonzero. However, pm_runtime_get_if_in_use() will only increment the
device's usage counter and return 1 in the latter case.
For consistency, make it do so in the former case either by adjusting
pm_runtime_get_conditional() and update the related kerneldoc comments
accordingly.
Fixes: c111566bea7c ("PM: runtime: Add pm_runtime_get_if_active()")
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Reviewed-by: Sakari Ailus <[email protected]>
Cc: 5.10+ <[email protected]> # 5.10+: c0ef3df8dbae: PM: runtime: Simplify pm_runtime_get_if_active() usage
Cc: 5.10+ <[email protected]> # 5.10+
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
