diff options
author | Andi Kleen <ak@suse.de> | 2006-09-26 04:52:29 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 04:52:29 -0400 |
commit | 7f11d8a5efd625ffa41cde1d8472f85e885478ec (patch) | |
tree | 4f80219fc2153166c89c54d6555498155fa2f3b2 /arch/x86_64/kernel/time.c | |
parent | 5ba5891d44a6acade44887a0f3195489d46c12de (diff) |
[PATCH] Remove all ifdefs for local/io apic
IO-APIC or local APIC can only be disabled at runtime anyways and
Kconfig has forced these options on for a long time now.
The Kconfigs are kept only now for the benefit of the shared acpi
boot.c code.
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/x86_64/kernel/time.c')
-rw-r--r-- | arch/x86_64/kernel/time.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86_64/kernel/time.c b/arch/x86_64/kernel/time.c index ea00915d393a..d66c7f750e75 100644 --- a/arch/x86_64/kernel/time.c +++ b/arch/x86_64/kernel/time.c | |||
@@ -41,9 +41,7 @@ | |||
41 | #include <asm/sections.h> | 41 | #include <asm/sections.h> |
42 | #include <linux/cpufreq.h> | 42 | #include <linux/cpufreq.h> |
43 | #include <linux/hpet.h> | 43 | #include <linux/hpet.h> |
44 | #ifdef CONFIG_X86_LOCAL_APIC | ||
45 | #include <asm/apic.h> | 44 | #include <asm/apic.h> |
46 | #endif | ||
47 | 45 | ||
48 | #ifdef CONFIG_CPU_FREQ | 46 | #ifdef CONFIG_CPU_FREQ |
49 | static void cpufreq_delayed_get(void); | 47 | static void cpufreq_delayed_get(void); |
@@ -438,12 +436,8 @@ void main_timer_handler(struct pt_regs *regs) | |||
438 | * have to call the local interrupt handler. | 436 | * have to call the local interrupt handler. |
439 | */ | 437 | */ |
440 | 438 | ||
441 | #ifndef CONFIG_X86_LOCAL_APIC | ||
442 | profile_tick(CPU_PROFILING, regs); | ||
443 | #else | ||
444 | if (!using_apic_timer) | 439 | if (!using_apic_timer) |
445 | smp_local_timer_interrupt(regs); | 440 | smp_local_timer_interrupt(regs); |
446 | #endif | ||
447 | 441 | ||
448 | /* | 442 | /* |
449 | * If we have an externally synchronized Linux clock, then update CMOS clock | 443 | * If we have an externally synchronized Linux clock, then update CMOS clock |
@@ -467,10 +461,8 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
467 | if (apic_runs_main_timer > 1) | 461 | if (apic_runs_main_timer > 1) |
468 | return IRQ_HANDLED; | 462 | return IRQ_HANDLED; |
469 | main_timer_handler(regs); | 463 | main_timer_handler(regs); |
470 | #ifdef CONFIG_X86_LOCAL_APIC | ||
471 | if (using_apic_timer) | 464 | if (using_apic_timer) |
472 | smp_send_timer_broadcast_ipi(); | 465 | smp_send_timer_broadcast_ipi(); |
473 | #endif | ||
474 | return IRQ_HANDLED; | 466 | return IRQ_HANDLED; |
475 | } | 467 | } |
476 | 468 | ||