aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
diff options
context:
space:
mode:
authorJames Clark <[email protected]>2024-05-07 14:12:06 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-05-09 21:48:19 +0000
commitfd81f52e311f11f3eba842439948f989ffa8ccc2 (patch)
tree32a9e637f721ab3a1d311152b7a3838d4255b963 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
parentperf symbols: Remove map from list before updating addresses (diff)
downloadkernel-fd81f52e311f11f3eba842439948f989ffa8ccc2.tar.gz
kernel-fd81f52e311f11f3eba842439948f989ffa8ccc2.zip
perf maps: Re-use __maps__free_maps_by_name()
maps__merge_in() hard codes the steps to free the maps_by_name list. It seems to not map__put() each element before freeing, and it sets maps_by_name_sorted to true after freeing, which may be harmless but is inconsistent with maps__init() and other functions. maps__maps_by_name_addr() is also quite hard to read because we already have maps__maps_by_name() and maps__maps_by_address(), but the function is only used in that place so delete it. Reviewed-by: Ian Rogers <[email protected]> Signed-off-by: James Clark <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions