]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/metag/include/asm/irq.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / metag / include / asm / irq.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
63047ea3
JH
2#ifndef __ASM_METAG_IRQ_H
3#define __ASM_METAG_IRQ_H
4
5#ifdef CONFIG_4KSTACKS
6extern void irq_ctx_init(int cpu);
7extern void irq_ctx_exit(int cpu);
8# define __ARCH_HAS_DO_SOFTIRQ
9#else
3dce23eb
JH
10static inline void irq_ctx_init(int cpu)
11{
12}
13static inline void irq_ctx_exit(int cpu)
14{
15}
63047ea3
JH
16#endif
17
18void tbi_startup_interrupt(int);
19void tbi_shutdown_interrupt(int);
20
21struct pt_regs;
22
23int tbisig_map(unsigned int hw);
24extern void do_IRQ(int irq, struct pt_regs *regs);
a85882d7 25extern void init_IRQ(void);
63047ea3
JH
26
27#ifdef CONFIG_METAG_SUSPEND_MEM
28int traps_save_context(void);
29int traps_restore_context(void);
30#endif
31
32#include <asm-generic/irq.h>
33
34#ifdef CONFIG_HOTPLUG_CPU
35extern void migrate_irqs(void);
36#endif
37
38#endif /* __ASM_METAG_IRQ_H */