drm/amd/display: optimize reserved time candidates handling
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v12 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- Add early return when *list_a_size = 0 to fix a corner case.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/amd/display: Optimize reserved time candidates sorting using standard sort()drivers/ | +13 | 0 replies | |
| 2/2 | drm/amd/display: Optimize remove_duplicates() from O(N^2) to O(N)drivers/ | +11 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Alex Hung |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] drm/amd/display: optimize reserved time candidates handling
Optimize the handling of reserved time candidates by replacing the custom bubble sort with the kernel's standard sort() and rewriting duplicate removal with a linear-time fast/slow pointer method. The changes improve sorting from O(N^2) to O(N log N) and duplicate removal from O(N^2) to O(N), reducing computational overhead and eliminating hand-rolled implementations, while correctness has been verified with simple unit tests.
---
Changes from v1:
- Add early return when *list_a_size = 0 to fix a corner case.
v1: https://lore.kernel.org/lkml/[email protected]
Kuan-Wei Chiu (2):
drm/amd/display: Optimize reserved time candidates sorting using
standard sort()
drm/amd/display: Optimize remove_duplicates() from O(N^2) to O(N)
.../dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c | 44 ++++++++++--------- 1 file changed, 24 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1