Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
10f939ff GU |
2 | #ifndef __M68K_HARDIRQ_H |
3 | #define __M68K_HARDIRQ_H | |
4 | ||
5 | #include <linux/threads.h> | |
6 | #include <linux/cache.h> | |
7 | #include <asm/irq.h> | |
8 | ||
10f939ff GU |
9 | #ifdef CONFIG_MMU |
10 | ||
4936f63c GU |
11 | static inline void ack_bad_irq(unsigned int irq) |
12 | { | |
13 | pr_crit("unexpected IRQ trap at vector %02x\n", irq); | |
14 | } | |
15 | ||
10f939ff GU |
16 | /* entry.S is sensitive to the offsets of these fields */ |
17 | typedef struct { | |
18 | unsigned int __softirq_pending; | |
19 | } ____cacheline_aligned irq_cpustat_t; | |
20 | ||
21 | #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */ | |
22 | ||
49148020 | 23 | #else |
10f939ff GU |
24 | |
25 | #include <asm-generic/hardirq.h> | |
26 | ||
27 | #endif /* !CONFIG_MMU */ | |
28 | ||
49148020 | 29 | #endif |