[PATCH v2 2/3] arm64: Always inline preempt count and reschedule checks

Hongyan Xia hongyan.xia at transsion.com
Wed Nov 25 18:51:10 PST 2026


On 11/26/2026 10:30 AM, Karl Mehltretter wrote:
> The preempt count and reschedule checks are plain inline functions,
> which permits out-of-line copies in instrumentable text. The checked
> notrace helpers added by the following patch use preempt_count(), while
> preempt_enable_notrace() uses should_resched() with
> CONFIG_DEBUG_PREEMPT and __preempt_count_dec_and_test() without it.
> 
> Force all three operations inline so noinstr callers keep them in their
> own section.
> 
> Reviewed-by: Hongyan Xia <hongyan.xia at transsion.com>
> Signed-off-by: Karl Mehltretter <kmehltretter at gmail.com>

Nit: I'm flattered, but probably no need to put my R-b before your S-o-b :)

Same for 1/3. My R-b should be after you.

> ---
> [...]


More information about the linux-arm-kernel mailing list