diff options
Diffstat (limited to 'arch/x86_64/kernel/apic.c')
-rw-r--r-- | arch/x86_64/kernel/apic.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/arch/x86_64/kernel/apic.c b/arch/x86_64/kernel/apic.c index 375d369570ca..9af0cc3e2ccc 100644 --- a/arch/x86_64/kernel/apic.c +++ b/arch/x86_64/kernel/apic.c | |||
@@ -325,14 +325,6 @@ void __cpuinit setup_local_APIC (void) | |||
325 | { | 325 | { |
326 | unsigned int value, ver, maxlvt; | 326 | unsigned int value, ver, maxlvt; |
327 | 327 | ||
328 | /* Pound the ESR really hard over the head with a big hammer - mbligh */ | ||
329 | if (esr_disable) { | ||
330 | apic_write(APIC_ESR, 0); | ||
331 | apic_write(APIC_ESR, 0); | ||
332 | apic_write(APIC_ESR, 0); | ||
333 | apic_write(APIC_ESR, 0); | ||
334 | } | ||
335 | |||
336 | value = apic_read(APIC_LVR); | 328 | value = apic_read(APIC_LVR); |
337 | ver = GET_APIC_VERSION(value); | 329 | ver = GET_APIC_VERSION(value); |
338 | 330 | ||
@@ -434,7 +426,7 @@ void __cpuinit setup_local_APIC (void) | |||
434 | value |= APIC_LVT_LEVEL_TRIGGER; | 426 | value |= APIC_LVT_LEVEL_TRIGGER; |
435 | apic_write_around(APIC_LVT1, value); | 427 | apic_write_around(APIC_LVT1, value); |
436 | 428 | ||
437 | if (APIC_INTEGRATED(ver) && !esr_disable) { /* !82489DX */ | 429 | { |
438 | unsigned oldvalue; | 430 | unsigned oldvalue; |
439 | maxlvt = get_maxlvt(); | 431 | maxlvt = get_maxlvt(); |
440 | if (maxlvt > 3) /* Due to the Pentium erratum 3AP. */ | 432 | if (maxlvt > 3) /* Due to the Pentium erratum 3AP. */ |
@@ -452,17 +444,6 @@ void __cpuinit setup_local_APIC (void) | |||
452 | apic_printk(APIC_VERBOSE, | 444 | apic_printk(APIC_VERBOSE, |
453 | "ESR value after enabling vector: %08x, after %08x\n", | 445 | "ESR value after enabling vector: %08x, after %08x\n", |
454 | oldvalue, value); | 446 | oldvalue, value); |
455 | } else { | ||
456 | if (esr_disable) | ||
457 | /* | ||
458 | * Something untraceble is creating bad interrupts on | ||
459 | * secondary quads ... for the moment, just leave the | ||
460 | * ESR disabled - we can't do anything useful with the | ||
461 | * errors anyway - mbligh | ||
462 | */ | ||
463 | apic_printk(APIC_DEBUG, "Leaving ESR disabled.\n"); | ||
464 | else | ||
465 | apic_printk(APIC_DEBUG, "No ESR for 82489DX.\n"); | ||
466 | } | 447 | } |
467 | 448 | ||
468 | nmi_watchdog_default(); | 449 | nmi_watchdog_default(); |