aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorLiao Chang <liaochang1@huawei.com>2024-10-24 03:41:20 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2024-11-01 15:31:02 +0000
commit9a0e3b92b02e7a921b22f4d00d87e3506d06b92a (patch)
tree906bd25fb09ffe550e697c47dc08dc6de322c228 /scripts/lib/kdoc/kdoc_parser.py
parentarm64/mm: Re-organize arch_make_huge_pte() (diff)
downloadlinux-rng-9a0e3b92b02e7a921b22f4d00d87e3506d06b92a.tar.xz
linux-rng-9a0e3b92b02e7a921b22f4d00d87e3506d06b92a.zip
arm64: Return early when break handler is found on linked-list
The search for breakpoint handlers iterate through the entire linked list. Given that all registered hook has a valid fn field, and no registered hooks share the same mask and imm. This commit optimize the efficiency slightly by returning early as a matching handler is found. Signed-off-by: Liao Chang <liaochang1@huawei.com> Acked-by: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20241024034120.3814224-1-liaochang1@huawei.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions