ia64/xen-unstable

changeset 18370:95f1dc27e182

x86: Time rendezvous function does not need to disable/enable IRQs.
Since rendezvous happens within the IPI handler, no need to specify
'wait' to on_each_cpu().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Aug 25 14:03:42 2008 +0100 (2008-08-25)
parents 2ec019301ad8
children 21294d41c26e
files xen/arch/x86/time.c
line diff
     1.1 --- a/xen/arch/x86/time.c	Thu Aug 21 15:18:05 2008 +0100
     1.2 +++ b/xen/arch/x86/time.c	Mon Aug 25 14:03:42 2008 +0100
     1.3 @@ -1004,8 +1004,6 @@ static void time_calibration_rendezvous(
     1.4      struct cpu_calibration *c = &this_cpu(cpu_calibration);
     1.5      struct calibration_rendezvous *r = _r;
     1.6  
     1.7 -    local_irq_disable();
     1.8 -
     1.9      if ( smp_processor_id() == 0 )
    1.10      {
    1.11          while ( atomic_read(&r->nr_cpus) != (total_cpus - 1) )
    1.12 @@ -1024,8 +1022,6 @@ static void time_calibration_rendezvous(
    1.13      c->stime_local_stamp = get_s_time();
    1.14      c->stime_master_stamp = r->master_stime;
    1.15  
    1.16 -    local_irq_enable();
    1.17 -
    1.18      /* Callback in softirq context as soon as possible. */
    1.19      set_timer(&c->softirq_callback, c->stime_local_stamp);
    1.20  }
    1.21 @@ -1036,7 +1032,7 @@ static void time_calibration(void *unuse
    1.22          .nr_cpus = ATOMIC_INIT(0)
    1.23      };
    1.24  
    1.25 -    on_each_cpu(time_calibration_rendezvous, &r, 0, 1);
    1.26 +    on_each_cpu(time_calibration_rendezvous, &r, 0, 0);
    1.27  }
    1.28  
    1.29  void init_percpu_time(void)