diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-01-30 07:30:19 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:19 -0500 |
commit | 87ebecf14ca4f669cb52be46c954f3d9201394b8 (patch) | |
tree | f36b8072bc081b3f483c29e5394ab96cdf501201 /arch/x86/kernel/apic_64.c | |
parent | 3e35a0e525253837fc0ea4d0e060de3302bd9537 (diff) |
x86: move ack_bad_irq into irq code
Match i386, where we have this in the irq code. It belongs there.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r-- | arch/x86/kernel/apic_64.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index e0191cdd6f7a..032bf1e765df 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -169,26 +169,6 @@ int lapic_get_maxlvt(void) | |||
169 | return maxlvt; | 169 | return maxlvt; |
170 | } | 170 | } |
171 | 171 | ||
172 | /* | ||
173 | * 'what should we do if we get a hw irq event on an illegal vector'. | ||
174 | * each architecture has to answer this themselves. | ||
175 | */ | ||
176 | void ack_bad_irq(unsigned int irq) | ||
177 | { | ||
178 | printk("unexpected IRQ trap at vector %02x\n", irq); | ||
179 | /* | ||
180 | * Currently unexpected vectors happen only on SMP and APIC. | ||
181 | * We _must_ ack these because every local APIC has only N | ||
182 | * irq slots per priority level, and a 'hanging, unacked' IRQ | ||
183 | * holds up an irq slot - in excessive cases (when multiple | ||
184 | * unexpected vectors occur) that might lock up the APIC | ||
185 | * completely. | ||
186 | * But don't ack when the APIC is disabled. -AK | ||
187 | */ | ||
188 | if (!disable_apic) | ||
189 | ack_APIC_irq(); | ||
190 | } | ||
191 | |||
192 | void clear_local_APIC(void) | 172 | void clear_local_APIC(void) |
193 | { | 173 | { |
194 | int maxlvt; | 174 | int maxlvt; |