All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] minios: let events get mixed
@ 2008-05-06 15:22 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-05-06 15:22 UTC (permalink / raw)
  To: xen-devel

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;
 	}

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

only message in thread, other threads:[~2008-05-06 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 15:22 [PATCH] minios: let events get mixed Samuel Thibault

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.