Greg Ungerer | 10f939f | 2011-05-04 13:55:56 +1000 | [diff] [blame] | 1 | #ifndef __M68K_HARDIRQ_H |
| 2 | #define __M68K_HARDIRQ_H |
| 3 | |
| 4 | #include <linux/threads.h> |
| 5 | #include <linux/cache.h> |
| 6 | #include <asm/irq.h> |
| 7 | |
Greg Ungerer | 10f939f | 2011-05-04 13:55:56 +1000 | [diff] [blame] | 8 | #ifdef CONFIG_MMU |
| 9 | |
Geert Uytterhoeven | 4936f63 | 2011-04-21 22:50:52 +0200 | [diff] [blame] | 10 | static inline void ack_bad_irq(unsigned int irq) |
| 11 | { |
| 12 | pr_crit("unexpected IRQ trap at vector %02x\n", irq); |
| 13 | } |
| 14 | |
Greg Ungerer | 10f939f | 2011-05-04 13:55:56 +1000 | [diff] [blame] | 15 | /* entry.S is sensitive to the offsets of these fields */ |
| 16 | typedef struct { |
| 17 | unsigned int __softirq_pending; |
| 18 | } ____cacheline_aligned irq_cpustat_t; |
| 19 | |
| 20 | #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */ |
| 21 | |
Sam Ravnborg | 4914802 | 2009-01-16 21:58:10 +1000 | [diff] [blame] | 22 | #else |
Greg Ungerer | 10f939f | 2011-05-04 13:55:56 +1000 | [diff] [blame] | 23 | |
| 24 | #include <asm-generic/hardirq.h> |
| 25 | |
| 26 | #endif /* !CONFIG_MMU */ |
| 27 | |
Sam Ravnborg | 4914802 | 2009-01-16 21:58:10 +1000 | [diff] [blame] | 28 | #endif |