aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2021-05-26 16:22:51 +0000
committerRafael J. Wysocki <[email protected]>2021-05-31 12:17:13 +0000
commitc58e7ed28b4534ed073371843d03c433d6a9fe34 (patch)
tree1eddbefcfcc586e30435101425feaa96887eb283 /tools/perf/scripts/python/syscall-counts.py
parentLinux 5.13-rc4 (diff)
downloadkernel-c58e7ed28b4534ed073371843d03c433d6a9fe34.tar.gz
kernel-c58e7ed28b4534ed073371843d03c433d6a9fe34.zip
PM: runtime: document common mistake with pm_runtime_get_sync()
pm_runtime_get_sync(), contradictory to intuition, does not drop the runtime PM usage counter on errors which lead to several wrong usages in drivers (missing the put). pm_runtime_resume_and_get() was added as a better implementation so document the preference of using it, hoping it will stop bad patterns. Suggested-by: Marek Szyprowski <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> [ rjw: Documentation change edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions