ia64/xen-unstable

changeset 18682:e7f876c94955

x86: Move some code out of IRQ-disabled section of context switch path.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Oct 21 14:14:37 2008 +0100 (2008-10-21)
parents de6af72f7b5c
children f7c09997cf11
files xen/arch/x86/domain.c
line diff
     1.1 --- a/xen/arch/x86/domain.c	Tue Oct 21 14:13:54 2008 +0100
     1.2 +++ b/xen/arch/x86/domain.c	Tue Oct 21 14:14:37 2008 +0100
     1.3 @@ -1255,11 +1255,11 @@ void context_switch(struct vcpu *prev, s
     1.4              flush_tlb_mask(next->vcpu_dirty_cpumask);
     1.5      }
     1.6  
     1.7 -    local_irq_disable();
     1.8 -
     1.9      if ( is_hvm_vcpu(prev) && !list_empty(&prev->arch.hvm_vcpu.tm_list) )
    1.10          pt_save_timer(prev);
    1.11  
    1.12 +    local_irq_disable();
    1.13 +
    1.14      set_current(next);
    1.15  
    1.16      if ( (per_cpu(curr_vcpu, cpu) == next) || is_idle_vcpu(next) )