Fix debug key t to avoid irq jitter.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Jul 2008 08:49:40 +0000 (09:49 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Jul 2008 08:49:40 +0000 (09:49 +0100)
From: Dan Magenheimer <dan.magenheimer@oracle.com>
Siigned-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/keyhandler.c

index 2acd17ae7b9816b3e1da001397586d389077821f..56c59905b26673af672d7f2263c5ec45076c5381 100644 (file)
@@ -240,10 +240,12 @@ static s_time_t read_clocks_time[NR_CPUS];
 static void read_clocks_slave(void *unused)
 {
     unsigned int cpu = smp_processor_id();
+    local_irq_disable();
     while ( !cpu_isset(cpu, read_clocks_cpumask) )
         cpu_relax();
     read_clocks_time[cpu] = NOW();
     cpu_clear(cpu, read_clocks_cpumask);
+    local_irq_enable();
 }
 
 static void read_clocks(unsigned char key)