summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoqun Feng <boqun@kernel.org>2026-08-04 09:14:33 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-08-10 10:50:20 +0200
commit264bbd32a31ba80e634bec5c1df8514c0e97fe7e (patch)
treef5e619bcd6c0cfa4c08ef7fb6cf22343d4a656d9
parent3b0e2a22d4086ed7c1294584c4417f7d19f1ac67 (diff)
downloadlinux-264bbd32a31ba80e634bec5c1df8514c0e97fe7e.tar.gz
linux-264bbd32a31ba80e634bec5c1df8514c0e97fe7e.zip
arm64: sched/preempt: Enable HAS_SEPARATE_PREEMPT_RESCHED_BITS
Arm64 already uses 64-bit preempt count and the need reschedule bit is maintained in a separate 32-bit word from the preempt count. Therefore preempt count has enough bits to represent 16 levels of NMI nesting, hence enable it for arm64. This saves a per-CPU variable and additional instructions in the NMI path. Signed-off-by: Boqun Feng <boqun@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20260804161447.84806-12-boqun@kernel.org
-rw-r--r--arch/arm64/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index b3afe0688919..349c3533cd1e 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -247,6 +247,7 @@ config ARM64
select PCI_SYSCALL if PCI
select POWER_RESET
select POWER_SUPPLY
+ select HAS_SEPARATE_PREEMPT_RESCHED_BITS
select SPARSE_IRQ
select SWIOTLB
select SYSCTL_EXCEPTION_TRACE