All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dan Magenheimer" <dan.magenheimer@oracle.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] trivial patch for xm debug-key t
Date: Sat, 19 Jul 2008 10:15:03 -0600	[thread overview]
Message-ID: <20080719101503671.00000001344@djm-pc> (raw)

[-- 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

                 reply	other threads:[~2008-07-19 16:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080719101503671.00000001344@djm-pc \
    --to=dan.magenheimer@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.