| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | #ifdef __KERNEL__ |
|---|
| 2 | 3 | #ifndef _ASM_POWERPC_IRQ_H |
|---|
| 3 | 4 | #define _ASM_POWERPC_IRQ_H |
|---|
| 4 | 5 | |
|---|
| 5 | 6 | /* |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or |
|---|
| 7 | | - * modify it under the terms of the GNU General Public License |
|---|
| 8 | | - * as published by the Free Software Foundation; either version |
|---|
| 9 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/irqdomain.h> |
|---|
| .. | .. |
|---|
| 38 | 35 | |
|---|
| 39 | 36 | extern int distribute_irqs; |
|---|
| 40 | 37 | |
|---|
| 41 | | -struct irqaction; |
|---|
| 42 | 38 | struct pt_regs; |
|---|
| 43 | 39 | |
|---|
| 44 | 40 | #define __ARCH_HAS_DO_SOFTIRQ |
|---|
| .. | .. |
|---|
| 48 | 44 | * Per-cpu stacks for handling critical, debug and machine check |
|---|
| 49 | 45 | * level interrupts. |
|---|
| 50 | 46 | */ |
|---|
| 51 | | -extern struct thread_info *critirq_ctx[NR_CPUS]; |
|---|
| 52 | | -extern struct thread_info *dbgirq_ctx[NR_CPUS]; |
|---|
| 53 | | -extern struct thread_info *mcheckirq_ctx[NR_CPUS]; |
|---|
| 54 | | -extern void exc_lvl_ctx_init(void); |
|---|
| 55 | | -#else |
|---|
| 56 | | -#define exc_lvl_ctx_init() |
|---|
| 47 | +extern void *critirq_ctx[NR_CPUS]; |
|---|
| 48 | +extern void *dbgirq_ctx[NR_CPUS]; |
|---|
| 49 | +extern void *mcheckirq_ctx[NR_CPUS]; |
|---|
| 57 | 50 | #endif |
|---|
| 58 | 51 | |
|---|
| 59 | 52 | /* |
|---|
| 60 | 53 | * Per-cpu stacks for handling hard and soft interrupts. |
|---|
| 61 | 54 | */ |
|---|
| 62 | | -extern struct thread_info *hardirq_ctx[NR_CPUS]; |
|---|
| 63 | | -extern struct thread_info *softirq_ctx[NR_CPUS]; |
|---|
| 55 | +extern void *hardirq_ctx[NR_CPUS]; |
|---|
| 56 | +extern void *softirq_ctx[NR_CPUS]; |
|---|
| 64 | 57 | |
|---|
| 65 | | -extern void irq_ctx_init(void); |
|---|
| 66 | | -extern void call_do_softirq(struct thread_info *tp); |
|---|
| 67 | | -extern void call_do_irq(struct pt_regs *regs, struct thread_info *tp); |
|---|
| 58 | +void call_do_softirq(void *sp); |
|---|
| 59 | +void call_do_irq(struct pt_regs *regs, void *sp); |
|---|
| 68 | 60 | extern void do_IRQ(struct pt_regs *regs); |
|---|
| 69 | 61 | extern void __init init_IRQ(void); |
|---|
| 70 | 62 | extern void __do_irq(struct pt_regs *regs); |
|---|