aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/workqueue.c
diff options
context:
space:
mode:
authorLiao Chang <[email protected]>2024-10-24 03:41:20 +0000
committerCatalin Marinas <[email protected]>2024-11-01 15:31:02 +0000
commit9a0e3b92b02e7a921b22f4d00d87e3506d06b92a (patch)
tree906bd25fb09ffe550e697c47dc08dc6de322c228 /rust/helpers/workqueue.c
parentf8192813dcbe6d27e7031d9d353ea1fcc67052fd (diff)
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 <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions