diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-08-18 12:45:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-18 20:07:17 -0400 |
commit | 0b23e8cf553f5e706b0057363f1319867bcd1a7d (patch) | |
tree | a9d1116c7c59d81cbc0d88d47366802cbb70201a | |
parent | fa6b95fc7c6f2f3eb1560e1f33cd13197546c5a0 (diff) |
x86: apic - unify local_apic_timer_interrupt
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/apic_32.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/apic_64.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index f1882329b9cf..af227bce23b1 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -685,7 +685,11 @@ static void local_apic_timer_interrupt(void) | |||
685 | /* | 685 | /* |
686 | * the NMI deadlock-detector uses this. | 686 | * the NMI deadlock-detector uses this. |
687 | */ | 687 | */ |
688 | #ifdef CONFIG_X86_64 | ||
689 | add_pda(apic_timer_irqs, 1); | ||
690 | #else | ||
688 | per_cpu(irq_stat, cpu).apic_timer_irqs++; | 691 | per_cpu(irq_stat, cpu).apic_timer_irqs++; |
692 | #endif | ||
689 | 693 | ||
690 | evt->event_handler(evt); | 694 | evt->event_handler(evt); |
691 | } | 695 | } |
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index eec10b34dc49..a9ad2cb4ff95 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -567,7 +567,11 @@ static void local_apic_timer_interrupt(void) | |||
567 | /* | 567 | /* |
568 | * the NMI deadlock-detector uses this. | 568 | * the NMI deadlock-detector uses this. |
569 | */ | 569 | */ |
570 | #ifdef CONFIG_X86_64 | ||
570 | add_pda(apic_timer_irqs, 1); | 571 | add_pda(apic_timer_irqs, 1); |
572 | #else | ||
573 | per_cpu(irq_stat, cpu).apic_timer_irqs++; | ||
574 | #endif | ||
571 | 575 | ||
572 | evt->event_handler(evt); | 576 | evt->event_handler(evt); |
573 | } | 577 | } |