Skip to content

Commit 70b0faa

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Guard percpu handler under !CONFIG_PREEMPT_RT
After commit 88fd2b7 ("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>
1 parent 055c7e7 commit 70b0faa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/loongarch/kernel/unwind_prologue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static inline bool scan_handlers(unsigned long entry_offset)
6565

6666
static inline bool fix_exception(unsigned long pc)
6767
{
68-
#ifdef CONFIG_NUMA
68+
#if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT)
6969
int cpu;
7070

7171
for_each_possible_cpu(cpu) {

0 commit comments

Comments
 (0)