All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trivial patch for xm debug-key t
@ 2008-07-19 16:15 Dan Magenheimer
  0 siblings, 0 replies; only message in thread
From: Dan Magenheimer @ 2008-07-19 16:15 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

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)

[-- Attachment #2: xmdebugt.patch --]
[-- Type: application/octet-stream, Size: 574 bytes --]

diff -r 092a15aa2430 xen/common/keyhandler.c
--- a/xen/common/keyhandler.c	Fri Jul 18 15:03:55 2008 +0100
+++ b/xen/common/keyhandler.c	Sat Jul 19 10:11:43 2008 -0600
@@ -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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-19 16:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-19 16:15 [PATCH] trivial patch for xm debug-key t Dan Magenheimer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.