aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-07-21 09:49:40 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-07-21 09:49:40 +0100
commit6bee9dd132b7c1a333f79e08cb2876aaad2f32de (patch)
tree2f438d1c57e74efd22cbb1f26d6fe185d9db8193
parent418ce6a5310a93cb95b1bbd74ee8b56f150cdbf1 (diff)
downloadxen-6bee9dd132b7c1a333f79e08cb2876aaad2f32de.tar.gz
xen-6bee9dd132b7c1a333f79e08cb2876aaad2f32de.tar.bz2
xen-6bee9dd132b7c1a333f79e08cb2876aaad2f32de.zip
Fix debug key t to avoid irq jitter.
From: Dan Magenheimer <dan.magenheimer@oracle.com> Siigned-off-by: Keir Fraser <keir.fraser@citrix.com>
-rw-r--r--xen/common/keyhandler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c
index 2acd17ae7b..56c59905b2 100644
--- a/xen/common/keyhandler.c
+++ b/xen/common/keyhandler.c
@@ -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)