aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorLi Ming <ming4.li@intel.com>2024-08-30 01:31:37 +0000
committerDave Jiang <dave.jiang@intel.com>2024-09-03 14:49:49 -0700
commit7f569e917b7866b6760e2cfc3a9549cabc890071 (patch)
tree9f49e3c2fe54c992e7fa4c8c490618ce79fdd580 /tools/perf/scripts/python/task-analyzer.py
parentdd2617ebd2a69c012001a29274557199409eff39 (diff)
cxl/port: Use scoped_guard()/guard() to drop device_lock() for cxl_port
A device_lock() and device_unlock() pair can be replaced by a cleanup helper scoped_guard() or guard(), that can enhance code readability. In CXL subsystem, still use device_lock() and device_unlock() pairs for cxl port resource protection, most of them can be replaced by a scoped_guard() or a guard() simply. Suggested-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Li Ming <ming4.li@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://patch.msgid.link/20240830013138.2256244-2-ming4.li@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions