mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
LoongArch: Guard percpu handler under !CONFIG_PREEMPT_RT
After commit 88fd2b7012 ("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>
This commit is contained in:
parent
055c7e7519
commit
70b0faae35
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user