Skip to content

Commit 274ea35

Browse files
committed
LoongArch: Define ARCH_IRQ_INIT_FLAGS as IRQ_NOPROBE
Currently we call irq_set_noprobe() in a loop for all IRQs, but indeed it only works for IRQs below NR_IRQS_LEGACY because at init_IRQ() only legacy interrupts have been allocated. Instead, we can define ARCH_IRQ_INIT_FLAGS as IRQ_NOPROBE in asm/hwirq.h and the core will automatically set the flag for all interrupts. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn>
1 parent 58aec91 commit 274ea35

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

arch/loongarch/include/asm/hw_irq.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
extern atomic_t irq_err_count;
1111

12+
#define ARCH_IRQ_INIT_FLAGS IRQ_NOPROBE
13+
1214
/*
1315
* interrupt-retrigger: NOP for now. This may not be appropriate for all
1416
* machines, we'll see ...

arch/loongarch/kernel/irq.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ void __init init_IRQ(void)
102102
mp_ops.init_ipi();
103103
#endif
104104

105-
for (i = 0; i < NR_IRQS; i++)
106-
irq_set_noprobe(i);
107-
108105
for_each_possible_cpu(i) {
109106
page = alloc_pages_node(cpu_to_node(i), GFP_KERNEL, order);
110107

0 commit comments

Comments
 (0)