2 * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar
3 * Copyright (C) 2005-2006, Thomas Gleixner, Russell King
5 * This file contains the dummy interrupt chip implementation
7 #include <linux/interrupt.h>
9 #include <linux/export.h>
11 #include "internals.h"
14 * What should we do if we get a hw irq event on an illegal vector?
15 * Each architecture has to answer this themself.
17 static void ack_bad(struct irq_data
*data
)
19 struct irq_desc
*desc
= irq_data_to_desc(data
);
21 print_irq_desc(data
->irq
, desc
);
22 ack_bad_irq(data
->irq
);
28 static void noop(struct irq_data
*data
) { }
30 static unsigned int noop_ret(struct irq_data
*data
)
36 * Generic no controller implementation
38 struct irq_chip no_irq_chip
= {
40 .irq_startup
= noop_ret
,
48 * Generic dummy implementation which can be used for
49 * real dumb interrupt sources
51 struct irq_chip dummy_irq_chip
= {
53 .irq_startup
= noop_ret
,
60 .flags
= IRQCHIP_SKIP_SET_WAKE
,
62 EXPORT_SYMBOL_GPL(dummy_irq_chip
);