Commit 9a0e3b92 authored by Liao Chang's avatar Liao Chang Committed by Catalin Marinas
Browse files

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: default avatarLiao Chang <liaochang1@huawei.com>
Acked-by: default avatarWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20241024034120.3814224-1-liaochang1@huawei.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent f8192813
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment