Skip to contentSkip to conversation

trivial patch for xm debug-key t

PATCH New Dan Magenheimer 1 participant 1 message Jul 19, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial patch for xm debug-key t

This trivial patch ensures interrupts don't adversely affect the intra-processor stime skew data collected by "xm debug-key t"

Dan

===================================
Thanks... for the memory
I really could use more / My throughput's on the floor The balloon is flat / My swap disk's fat / I've OOM's in store Overcommitted so much
(with apologies to the late great Bob Hope)

xen/common/keyhandler.c +2 -0
diff -r 092a15aa2430 xen/common/keyhandler.c
@@ -240,10 +240,12 @@ static void read_clocks_slave(void *unus
 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)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel