]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: apic - skip writting ESR register if we dont have on
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 14 Sep 2008 07:55:38 +0000 (11:55 +0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:10 +0000 (16:53 +0200)
On 82489DX we don't have ESR register so we should not
write it.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic.c

index 59550cc017dcb9d39a5508cacbb829b926ad9f6f..d730e8d317275b2ed1ed9bc5005499abb4b330e9 100644 (file)
@@ -1131,7 +1131,7 @@ void __cpuinit setup_local_APIC(void)
 
 #ifdef CONFIG_X86_32
        /* Pound the ESR really hard over the head with a big hammer - mbligh */
-       if (esr_disable) {
+       if (lapic_is_integrated() && esr_disable) {
                apic_write(APIC_ESR, 0);
                apic_write(APIC_ESR, 0);
                apic_write(APIC_ESR, 0);