[PATCH 1/1] arm/syscalls: mark syscall invocation as likely in invoke_syscall
Will Deacon
will at kernel.org
Mon Sep 22 06:14:49 PDT 2025
On Fri, 19 Sep 2025 18:00:42 +0800, Can Peng wrote:
> The invoke_syscall() function is overwhelmingly called for
> valid system call entries. Annotate the main path with likely()
> to help the compiler generate better branch prediction hints,
> reducing CPU pipeline stalls due to mispredictions.
>
> This is a micro-optimization targeting syscall-heavy workloads.
>
> [...]
Applied to arm64 (for-next/entry), thanks!
[1/1] arm/syscalls: mark syscall invocation as likely in invoke_syscall
https://git.kernel.org/arm64/c/da9e5c04be58
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list