]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: entry: Refactor preempt_schedule_irq() check code
authorJinjie Ruan <ruanjinjie@huawei.com>
Fri, 15 Aug 2025 03:06:31 +0000 (11:06 +0800)
committerWill Deacon <will@kernel.org>
Thu, 11 Sep 2025 14:55:34 +0000 (15:55 +0100)
commit64f4b8b15f1c3c9a4e416fc5b5b4dc354b78e75e
tree9107895c5228317c218933bf0c60a183d3f27844
parent3c973c51bfbaf356367afa46b94f9100a7d672f2
arm64: entry: Refactor preempt_schedule_irq() check code

To align the structure of the code with irqentry_exit_cond_resched()
from the generic entry code, hoist the need_irq_preemption()
and IS_ENABLED() check earlier. And different preemption check functions
are defined based on whether dynamic preemption is enabled.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Ada Couprie Diaz <ada.coupriediaz@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/preempt.h
arch/arm64/kernel/entry-common.c