aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-08-24 05:01:45 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:53:01 -0400
commit6460bc73aac970135104a0bc407c2c8b85394d59 (patch)
tree82ac232268fadaae95db8681d89dbbfc0109d51d
parent457cc52d4670bcf1470606a108bbf35aac28eb7f (diff)
x86: apic - unify smp_apic_timer_interrupt
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/apic_32.c3
-rw-r--r--arch/x86/kernel/apic_64.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index 4ca3717b3026..913d9924b101 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -718,6 +718,9 @@ void smp_apic_timer_interrupt(struct pt_regs *regs)
718 * Besides, if we don't timer interrupts ignore the global 718 * Besides, if we don't timer interrupts ignore the global
719 * interrupt lock, which is the WrongThing (tm) to do. 719 * interrupt lock, which is the WrongThing (tm) to do.
720 */ 720 */
721#ifdef CONFIG_X86_64
722 exit_idle();
723#endif
721 irq_enter(); 724 irq_enter();
722 local_apic_timer_interrupt(); 725 local_apic_timer_interrupt();
723 irq_exit(); 726 irq_exit();
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index 283968d4e024..2e109119f647 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -625,7 +625,9 @@ void smp_apic_timer_interrupt(struct pt_regs *regs)
625 * Besides, if we don't timer interrupts ignore the global 625 * Besides, if we don't timer interrupts ignore the global
626 * interrupt lock, which is the WrongThing (tm) to do. 626 * interrupt lock, which is the WrongThing (tm) to do.
627 */ 627 */
628#ifdef CONFIG_X86_64
628 exit_idle(); 629 exit_idle();
630#endif
629 irq_enter(); 631 irq_enter();
630 local_apic_timer_interrupt(); 632 local_apic_timer_interrupt();
631 irq_exit(); 633 irq_exit();