All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] minios: let events get mixed
Date: Tue, 6 May 2008 16:22:47 +0100	[thread overview]
Message-ID: <20080506152247.GL4430@implementation.uk.xensource.com> (raw)

minios: let events get mixed
since events do not need to be counted

diff -r 66fdf958c6fc -r 20945f11bf10 tools/libxc/xc_minios.c
--- a/tools/libxc/xc_minios.c	Tue May 06 12:07:32 2008 +0100
+++ b/tools/libxc/xc_minios.c	Tue May 06 15:40:02 2008 +0100
@@ -178,7 +178,7 @@ static void evtchn_handler(evtchn_port_t
 	printk("Unknown port for handle %d\n", xce_handle);
 	return;
     }
-    files[xce_handle].evtchn.ports[i].pending++;
+    files[xce_handle].evtchn.ports[i].pending = 1;
     files[xce_handle].read = 1;
     wake_up(&event_queue);
 }
@@ -278,7 +278,7 @@ evtchn_port_or_error_t xc_evtchn_pending
     for (i = 0; i < MAX_EVTCHN_PORTS; i++) {
 	evtchn_port_t port = files[xce_handle].evtchn.ports[i].port;
 	if (port != -1 && files[xce_handle].evtchn.ports[i].pending) {
-	    files[xce_handle].evtchn.ports[i].pending--;
+	    files[xce_handle].evtchn.ports[i].pending = 0;
 	    local_irq_restore(flags);
 	    return port;
 	}

                 reply	other threads:[~2008-05-06 15:22 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=20080506152247.GL4430@implementation.uk.xensource.com \
    --to=samuel.thibault@eu.citrix.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.