diff options
Diffstat (limited to 'arch/arm64/kernel/irq.c')
-rw-r--r-- | arch/arm64/kernel/irq.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c index dfa6e3e74fdd..071a6ec13bd8 100644 --- a/arch/arm64/kernel/irq.c +++ b/arch/arm64/kernel/irq.c | |||
@@ -40,33 +40,6 @@ int arch_show_interrupts(struct seq_file *p, int prec) | |||
40 | return 0; | 40 | return 0; |
41 | } | 41 | } |
42 | 42 | ||
43 | /* | ||
44 | * handle_IRQ handles all hardware IRQ's. Decoded IRQs should | ||
45 | * not come via this function. Instead, they should provide their | ||
46 | * own 'handler'. Used by platform code implementing C-based 1st | ||
47 | * level decoding. | ||
48 | */ | ||
49 | void handle_IRQ(unsigned int irq, struct pt_regs *regs) | ||
50 | { | ||
51 | struct pt_regs *old_regs = set_irq_regs(regs); | ||
52 | |||
53 | irq_enter(); | ||
54 | |||
55 | /* | ||
56 | * Some hardware gives randomly wrong interrupts. Rather | ||
57 | * than crashing, do something sensible. | ||
58 | */ | ||
59 | if (unlikely(irq >= nr_irqs)) { | ||
60 | pr_warn_ratelimited("Bad IRQ%u\n", irq); | ||
61 | ack_bad_irq(irq); | ||
62 | } else { | ||
63 | generic_handle_irq(irq); | ||
64 | } | ||
65 | |||
66 | irq_exit(); | ||
67 | set_irq_regs(old_regs); | ||
68 | } | ||
69 | |||
70 | void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) | 43 | void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) |
71 | { | 44 | { |
72 | if (handle_arch_irq) | 45 | if (handle_arch_irq) |