diff options
| author | Yury Norov (NVIDIA) <yury.norov@gmail.com> | 2025-08-14 15:09:36 -0400 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-04-01 09:21:07 +0530 |
| commit | bd77a34e9a619ee92c03cbb227ca86d814aa6601 (patch) | |
| tree | 5e8c7c7c1ac03e272e7d40194b917187c57112cd /rust/kernel/ptr/git@git.tavy.me:linux.git | |
| parent | f73338d089deedb4f4f1e49751c30b8b7f595ecd (diff) | |
powerpc: pci-ioda: Optimize pnv_ioda_pick_m64_pe()
bitmap_empty() in pnv_ioda_pick_m64_pe() is O(N) and useless because
the following find_next_bit() does the same work.
Drop it, and while there replace a while() loop with the dedicated
for_each_set_bit().
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250814190936.381346-3-yury.norov@gmail.com
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
