mirror-linux/drivers/gpu/drm/amd/display/dc/dml2
Kuan-Wei Chiu 43f06e8165 drm/amd/display: Optimize remove_duplicates() from O(N^2) to O(N)
Replace the previous O(N^2) implementation of remove_duplicates() with
a O(N) version using a fast/slow pointer approach. The new version
keeps only the first occurrence of each element and compacts the array
in place, improving efficiency without changing functionality.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-09-23 10:36:53 -04:00
..
dml21 drm/amd/display: Optimize remove_duplicates() from O(N^2) to O(N) 2025-09-23 10:36:53 -04:00
Makefile drm/amd/display: DML2.1 changes 2025-06-18 12:19:17 -04:00
cmntypes.h
display_mode_core.c drm/amd/display: fix dml ms order of operations 2025-09-15 17:00:51 -04:00
display_mode_core.h
display_mode_core_structs.h drm/amd/display: apply two different methods to validate modes 2025-06-18 12:19:19 -04:00
display_mode_lib_defines.h
display_mode_util.c
display_mode_util.h
dml2_dc_resource_mgmt.c drm/amd/display: Use swap() to simplify code 2025-08-18 17:01:28 -04:00
dml2_dc_resource_mgmt.h
dml2_dc_types.h
dml2_internal_types.h
dml2_mall_phantom.c drm/amd/display: clean-up dead code in dml2_mall_phantom 2025-08-27 13:57:48 -04:00
dml2_mall_phantom.h
dml2_policy.c
dml2_policy.h
dml2_translation_helper.c drm/amd/display: remove use_native_pstate_optimization 2025-06-18 12:19:20 -04:00
dml2_translation_helper.h
dml2_utils.c
dml2_utils.h
dml2_wrapper.c drm/amd/display: Remove redundant ternary operators 2025-09-05 17:38:39 -04:00
dml2_wrapper.h drm/amd/display: Deprecate Loading Bounding Box From DMUB On DCN4 2025-06-18 12:19:16 -04:00
dml_assert.h
dml_depedencies.h
dml_display_rq_dlg_calc.c
dml_display_rq_dlg_calc.h
dml_logging.h