]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
LoongArch: Guard percpu handler under !CONFIG_PREEMPT_RT
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 10 Feb 2026 11:31:13 +0000 (19:31 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 10 Feb 2026 11:31:13 +0000 (19:31 +0800)
After commit 88fd2b70120d ("LoongArch: Fix sleeping in atomic context for
PREEMPT_RT"), it should guard percpu handler under !CONFIG_PREEMPT_RT to
avoid redundant operations.

Cc: stable@vger.kernel.org
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/unwind_prologue.c

index 729e775bd40dde5ddab1e11cefb405521c78b6f8..ee1c29686ab050dc87a11ded9fde52eb23f3fd04 100644 (file)
@@ -65,7 +65,7 @@ static inline bool scan_handlers(unsigned long entry_offset)
 
 static inline bool fix_exception(unsigned long pc)
 {
-#ifdef CONFIG_NUMA
+#if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT)
        int cpu;
 
        for_each_possible_cpu(cpu) {