diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-16 06:18:50 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:30 -0400 |
commit | 249f6d9eab372790579ada8991bba3384c204e06 (patch) | |
tree | 4af29e889c073ec317e7674f2165e49c9adab9b1 /arch/x86/kernel/irq_64.c | |
parent | 6b39ba771e3c78d00e0abcebad270bd4212b28bc (diff) |
x86: move ack_bad_irq() to irq.c
Share more duplicated code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/irq_64.c')
-rw-r--r-- | arch/x86/kernel/irq_64.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c index 39ef7feb9ea4..60eb84eb77a0 100644 --- a/arch/x86/kernel/irq_64.c +++ b/arch/x86/kernel/irq_64.c | |||
@@ -18,26 +18,6 @@ | |||
18 | #include <asm/idle.h> | 18 | #include <asm/idle.h> |
19 | #include <asm/smp.h> | 19 | #include <asm/smp.h> |
20 | 20 | ||
21 | /* | ||
22 | * 'what should we do if we get a hw irq event on an illegal vector'. | ||
23 | * each architecture has to answer this themselves. | ||
24 | */ | ||
25 | void ack_bad_irq(unsigned int irq) | ||
26 | { | ||
27 | printk(KERN_WARNING "unexpected IRQ trap at vector %02x\n", irq); | ||
28 | /* | ||
29 | * Currently unexpected vectors happen only on SMP and APIC. | ||
30 | * We _must_ ack these because every local APIC has only N | ||
31 | * irq slots per priority level, and a 'hanging, unacked' IRQ | ||
32 | * holds up an irq slot - in excessive cases (when multiple | ||
33 | * unexpected vectors occur) that might lock up the APIC | ||
34 | * completely. | ||
35 | * But don't ack when the APIC is disabled. -AK | ||
36 | */ | ||
37 | if (!disable_apic) | ||
38 | ack_APIC_irq(); | ||
39 | } | ||
40 | |||
41 | #ifdef CONFIG_DEBUG_STACKOVERFLOW | 21 | #ifdef CONFIG_DEBUG_STACKOVERFLOW |
42 | /* | 22 | /* |
43 | * Probabilistic stack overflow check: | 23 | * Probabilistic stack overflow check: |