aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2025-03-10 07:49:37 +0000
committerAndrew Morton <[email protected]>2025-03-17 19:17:01 +0000
commit19811285784f7f3d4abaa6e94623f2e7d10219d0 (patch)
treefb3a2f42527b03fd27a9e43e14fd5661e033fce0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentlib/interval_tree: add test case for span iteration (diff)
downloadkernel-19811285784f7f3d4abaa6e94623f2e7d10219d0.tar.gz
kernel-19811285784f7f3d4abaa6e94623f2e7d10219d0.zip
lib/interval_tree: skip the check before go to the right subtree
The interval_tree_subtree_search() holds the loop invariant: start <= node->ITSUBTREE Let's say we have a following tree: node / \ left right So we know node->ITSUBTREE is contributed by one of the following: * left->ITSUBTREE * ITLAST(node) * right->ITSUBTREE When we come to the right node, we are sure the first two don't contribute to node->ITSUBTREE and it must be the right node does the job. So skip the check before go to the right subtree. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Wei Yang <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Michel Lespinasse <[email protected]> Cc: Jason Gunthorpe <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions