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