summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorWenjing Liu <wenjing.liu@amd.com>2026-07-07 17:15:48 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-07-28 18:37:36 -0400
commita63f63f473e0ad53351c99e9602ee00c8428af2a (patch)
treeef3891b9844e2abdf1f62bdbbedcbbbc7ed22c6c /tools/perf/scripts/python/stackcollapse.py
parent52771a3254eabb37de2d53aa7b623a5487776ee8 (diff)
drm/amd/display: Make dc_state_update const in commit path
[Why] The state-update commit path only reads the caller's update descriptor, it never mutates the dc_state_update root. Making the pointer const documents that contract. [How] Add const to the updates parameter of dc_update_state and dc_check_state_update. Mark the single-assignment locals in dc_update_state_init const and replace the memset plus field-by-field assignment with a compound literal initializer. Reviewed-by: Dominik Kaszewski <dominik.kaszewski@amd.com> Signed-off-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions