ia64/xen-unstable
changeset 18120:c433ee4844fb
Fix debug key t to avoid irq jitter.
From: Dan Magenheimer <dan.magenheimer@oracle.com>
Siigned-off-by: Keir Fraser <keir.fraser@citrix.com>
From: Dan Magenheimer <dan.magenheimer@oracle.com>
Siigned-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Mon Jul 21 09:49:40 2008 +0100 (2008-07-21) |
parents | 34ad9e2c0d10 |
children | a0ce4b040114 |
files | xen/common/keyhandler.c |
line diff
1.1 --- a/xen/common/keyhandler.c Mon Jul 21 09:47:07 2008 +0100 1.2 +++ b/xen/common/keyhandler.c Mon Jul 21 09:49:40 2008 +0100 1.3 @@ -240,10 +240,12 @@ static s_time_t read_clocks_time[NR_CPUS 1.4 static void read_clocks_slave(void *unused) 1.5 { 1.6 unsigned int cpu = smp_processor_id(); 1.7 + local_irq_disable(); 1.8 while ( !cpu_isset(cpu, read_clocks_cpumask) ) 1.9 cpu_relax(); 1.10 read_clocks_time[cpu] = NOW(); 1.11 cpu_clear(cpu, read_clocks_cpumask); 1.12 + local_irq_enable(); 1.13 } 1.14 1.15 static void read_clocks(unsigned char key)