Skip to content
/ linux Public

Commit 76a0e30

Browse files
seehearfeelSasha Levin
authored andcommitted
LoongArch: Guard percpu handler under !CONFIG_PREEMPT_RT
[ Upstream commit 70b0faa ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0811b95 commit 76a0e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)