Re: [PATCH v2 1/3] arm64: Always inline raw preempt count updates
From: Catalin Marinas
Date: Fri Nov 27 2026 - 08:41:38 EST
On Thu, Nov 26, 2026 at 03:30:52AM +0100, Karl Mehltretter wrote:
> From: Hongyan Xia <hongyan.xia@xxxxxxxxxxxxx>
>
> Raw preempt count updates can be emitted out of line by the compiler.
> For a noinstr caller, that puts the update in ordinary instrumentable
> text. Force __preempt_count_add() and __preempt_count_sub() inline so
> their code stays in the caller's section.
>
> Link: https://lore.kernel.org/all/c3a90368dd6c096af9d918e036a27728696fb8a4.1786603168.git.hongyan.xia@xxxxxxxxxxxxx/
> Signed-off-by: Hongyan Xia <hongyan.xia@xxxxxxxxxxxxx>
> [kmehltretter: split out the arm64 preempt.h hunk and rewrite the changelog]
> Reviewed-by: Hongyan Xia <hongyan.xia@xxxxxxxxxxxxx>
> Signed-off-by: Karl Mehltretter <kmehltretter@xxxxxxxxx>
Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>