[PATCH] arm64: add unlikely hint to MTE async fault check in el0_svc_common

Catalin Marinas catalin.marinas at arm.com
Tue Nov 11 12:17:29 PST 2025


On Fri, 19 Sep 2025 11:33:27 +0800, Li Qiang wrote:
> Add unlikely() hint to the _TIF_MTE_ASYNC_FAULT flag check in
> el0_svc_common() since asynchronous MTE faults are expected to be
> rare occurrences during normal system call execution.
> 
> This optimization helps the compiler to improve instruction caching
> and branch prediction for the common case where no asynchronous
> MTE faults are pending, while maintaining correct behavior for
> the exceptional case where such faults need to be handled prior
> to system call execution.
> 
> [...]

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: add unlikely hint to MTE async fault check in el0_svc_common
      https://git.kernel.org/arm64/c/df717b9564c8

-- 
Catalin




More information about the linux-arm-kernel mailing list