[PATCH v2 1/3] arm64: Always inline raw preempt count updates

Catalin Marinas catalin.marinas at arm.com
Fri Nov 27 05:41:27 PST 2026


On Thu, Nov 26, 2026 at 03:30:52AM +0100, Karl Mehltretter wrote:
> From: Hongyan Xia <hongyan.xia at transsion.com>
> 
> 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@transsion.com/
> Signed-off-by: Hongyan Xia <hongyan.xia at transsion.com>
> [kmehltretter: split out the arm64 preempt.h hunk and rewrite the changelog]
> Reviewed-by: Hongyan Xia <hongyan.xia at transsion.com>
> Signed-off-by: Karl Mehltretter <kmehltretter at gmail.com>

Acked-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list