diff options
author | Christian König <christian.koenig@amd.com> | 2020-06-15 17:16:42 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-06-23 16:46:40 +0300 |
commit | 5fad79fd66ff90b8c0a95319dad0b099008f8347 (patch) | |
tree | 7fe0bd6de4f603aebf0693154d096d20da2dd46f /tools/perf/scripts/python/stackcollapse.py | |
parent | 271e7decd707accfe6d4965b2c5e60d2d77c8e35 (diff) | |
download | linux-5fad79fd66ff90b8c0a95319dad0b099008f8347.tar.xz |
drm/mm: cleanup and improve next_hole_*_addr()
Skipping just one branch of the tree is not the most
effective approach.
Instead use a macro to define the traversal functions and
sort out both branch sides.
This improves the performance of the unit tests by
a factor of more than 4.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nirmoy Das <nirmoy.das@amd.com>
Link: https://patchwork.freedesktop.org/patch/370298/
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions