xref: /linux/arch/csky/kernel/irq.c (revision 3eb66e91a25497065c5322b1268cbc3953642227)
1*e38a5272SGuo Ren // SPDX-License-Identifier: GPL-2.0
2*e38a5272SGuo Ren // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3*e38a5272SGuo Ren 
4*e38a5272SGuo Ren #include <linux/init.h>
5*e38a5272SGuo Ren #include <linux/interrupt.h>
6*e38a5272SGuo Ren #include <linux/irq.h>
7*e38a5272SGuo Ren #include <linux/irqchip.h>
8*e38a5272SGuo Ren #include <asm/traps.h>
9*e38a5272SGuo Ren #include <asm/smp.h>
10*e38a5272SGuo Ren 
11*e38a5272SGuo Ren void __init init_IRQ(void)
12*e38a5272SGuo Ren {
13*e38a5272SGuo Ren 	irqchip_init();
14*e38a5272SGuo Ren #ifdef CONFIG_SMP
15*e38a5272SGuo Ren 	setup_smp_ipi();
16*e38a5272SGuo Ren #endif
17*e38a5272SGuo Ren }
18*e38a5272SGuo Ren 
19*e38a5272SGuo Ren asmlinkage void __irq_entry csky_do_IRQ(struct pt_regs *regs)
20*e38a5272SGuo Ren {
21*e38a5272SGuo Ren 	handle_arch_irq(regs);
22*e38a5272SGuo Ren }
23