1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar
4 * Copyright (C) 2005-2006, Thomas Gleixner, Russell King
6 * This file contains the dummy interrupt chip implementation
8 #include <linux/interrupt.h>
10 #include <linux/export.h>
12 #include "internals.h"
15 * What should we do if we get a hw irq event on an illegal vector?
16 * Each architecture has to answer this themselves.
18 static void ack_bad(struct irq_data
*data
)
20 struct irq_desc
*desc
= irq_data_to_desc(data
);
22 print_irq_desc(data
->irq
, desc
);
23 ack_bad_irq(data
->irq
);
29 static void noop(struct irq_data
*data
) { }
31 static unsigned int noop_ret(struct irq_data
*data
)
37 * Generic no controller implementation
39 struct irq_chip no_irq_chip
= {
41 .irq_startup
= noop_ret
,
46 .flags
= IRQCHIP_SKIP_SET_WAKE
,
50 * Generic dummy implementation which can be used for
51 * real dumb interrupt sources
53 struct irq_chip dummy_irq_chip
= {
55 .irq_startup
= noop_ret
,
62 .flags
= IRQCHIP_SKIP_SET_WAKE
,
64 EXPORT_SYMBOL_GPL(dummy_irq_chip
);