Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

LoongArch: Guard percpu handler under !CONFIG_PREEMPT_RT

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>

authored by

Tiezhu Yang and committed by
Huacai Chen
70b0faae 055c7e75

+1 -1
+1 -1
arch/loongarch/kernel/unwind_prologue.c
··· 65 65 66 66 static inline bool fix_exception(unsigned long pc) 67 67 { 68 - #ifdef CONFIG_NUMA 68 + #if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT) 69 69 int cpu; 70 70 71 71 for_each_possible_cpu(cpu) {