blob: 11793165445df45aaa8c26928d03455b8656f76b [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
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
9#ifdef CONFIG_MMU
10
11static inline void ack_bad_irq(unsigned int irq)
12{
13 pr_crit("unexpected IRQ trap at vector %02x\n", irq);
14}
15
16/* entry.S is sensitive to the offsets of these fields */
17typedef 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
23#else
24
25#include <asm-generic/hardirq.h>
26
27#endif /* !CONFIG_MMU */
28
29#endif