Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90736e20e3805dd1ffff60e4750495944956cd44
Commit:     90736e20e3805dd1ffff60e4750495944956cd44
Parent:     ac3b6faff961dd52fde71fb199ec3cf68ba35052
Author:     Zachary Amsden <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 13 13:26:21 2007 +0100
Committer:  Andi Kleen <[EMAIL PROTECTED]>
CommitDate: Tue Feb 13 13:26:21 2007 +0100

    [PATCH] i386: Vmi timer race
    
    Because timer code moves around, and we might eventually move our init to a
    late_time_init hook, save and restore IRQs around this code because it is
    definitely not interrupt safe.
    
    Signed-off-by: Zachary Amsden <[EMAIL PROTECTED]>
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
---
 arch/i386/kernel/vmitime.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/i386/kernel/vmitime.c b/arch/i386/kernel/vmitime.c
index 7c3033d..2e2d8db 100644
--- a/arch/i386/kernel/vmitime.c
+++ b/arch/i386/kernel/vmitime.c
@@ -180,7 +180,9 @@ unsigned long long vmi_sched_clock(void)
 void __init vmi_time_init(void)
 {
        unsigned long long cycles_per_sec, cycles_per_msec;
+       unsigned long flags;
 
+       local_irq_save(flags);
        setup_irq(0, &vmi_timer_irq);
 #ifdef CONFIG_X86_LOCAL_APIC
        set_intr_gate(LOCAL_TIMER_VECTOR, apic_vmi_timer_interrupt);
@@ -224,6 +226,8 @@ void __init vmi_time_init(void)
                      VMI_ALARM_WIRED_IRQ0 | VMI_ALARM_IS_PERIODIC | 
VMI_CYCLES_AVAILABLE,
                      per_cpu(process_times_cycles_accounted_cpu, 0) + 
cycles_per_alarm,
                      cycles_per_alarm);
+
+       local_irq_restore(flags);
 }
 
 #ifdef CONFIG_X86_LOCAL_APIC
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to