mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00

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>
20 lines
396 B
C
20 lines
396 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
*/
|
|
#ifndef __ASM_HW_IRQ_H
|
|
#define __ASM_HW_IRQ_H
|
|
|
|
#include <linux/atomic.h>
|
|
|
|
extern atomic_t irq_err_count;
|
|
|
|
#define ARCH_IRQ_INIT_FLAGS IRQ_NOPROBE
|
|
|
|
/*
|
|
* interrupt-retrigger: NOP for now. This may not be appropriate for all
|
|
* machines, we'll see ...
|
|
*/
|
|
|
|
#endif /* __ASM_HW_IRQ_H */
|