2018-08-04 16:23:16 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-07-11 09:00:26 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 Regents of the University of California
|
|
|
|
* Copyright (C) 2017 SiFive
|
2018-08-04 16:23:16 +08:00
|
|
|
* Copyright (C) 2018 Christoph Hellwig
|
2017-07-11 09:00:26 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <linux/irqchip.h>
|
2018-10-03 03:15:07 +08:00
|
|
|
#include <linux/seq_file.h>
|
|
|
|
#include <asm/smp.h>
|
2017-07-11 09:00:26 +08:00
|
|
|
|
2018-10-03 03:15:07 +08:00
|
|
|
int arch_show_interrupts(struct seq_file *p, int prec)
|
|
|
|
{
|
|
|
|
show_ipi_stats(p, prec);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-07-11 09:00:26 +08:00
|
|
|
void __init init_IRQ(void)
|
|
|
|
{
|
|
|
|
irqchip_init();
|
2020-06-01 17:15:40 +08:00
|
|
|
if (!handle_arch_irq)
|
|
|
|
panic("No interrupt controller found.");
|
2017-07-11 09:00:26 +08:00
|
|
|
}
|