diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/apic.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index 1f48bd1c9f2d..04a7f960bbc0 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c | |||
@@ -332,11 +332,7 @@ int lapic_get_maxlvt(void) | |||
332 | */ | 332 | */ |
333 | 333 | ||
334 | /* Clock divisor */ | 334 | /* Clock divisor */ |
335 | #ifdef CONFG_X86_64 | ||
336 | #define APIC_DIVISOR 1 | ||
337 | #else | ||
338 | #define APIC_DIVISOR 16 | 335 | #define APIC_DIVISOR 16 |
339 | #endif | ||
340 | 336 | ||
341 | /* | 337 | /* |
342 | * This function sets up the local APIC timer, with a timeout of | 338 | * This function sets up the local APIC timer, with a timeout of |
@@ -592,10 +588,10 @@ static int __init calibrate_APIC_clock(void) | |||
592 | global_clock_event->event_handler = lapic_cal_handler; | 588 | global_clock_event->event_handler = lapic_cal_handler; |
593 | 589 | ||
594 | /* | 590 | /* |
595 | * Setup the APIC counter to 1e9. There is no way the lapic | 591 | * Setup the APIC counter to maximum. There is no way the lapic |
596 | * can underflow in the 100ms detection time frame | 592 | * can underflow in the 100ms detection time frame |
597 | */ | 593 | */ |
598 | __setup_APIC_LVTT(1000000000, 0, 0); | 594 | __setup_APIC_LVTT(0xffffffff, 0, 0); |
599 | 595 | ||
600 | /* Let the interrupts run */ | 596 | /* Let the interrupts run */ |
601 | local_irq_enable(); | 597 | local_irq_enable(); |