summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-12 06:16:03 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-08-15 20:03:21 +0300
commit3e03525ce15cb9fc633b3d0266866020e22ce5e6 (patch)
treefcc1db98f25cc6acc759dca9d7272c086eade0a2 /tools/perf/scripts/python/sctop.py
parentf101c13a8720c73e67f8f9d511fbbeda95bcedb1 (diff)
downloadlinux-3e03525ce15cb9fc633b3d0266866020e22ce5e6.tar.xz
drm/radeon: replace min/max nesting with clamp()
The clamp() macro explicitly expresses the intent of constraining a value within bounds.Therefore, replacing min(max(a, b), c) and max(min(a,b),c) with clamp(val, lo, hi) can improve code readability. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions