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: drop volatile qualifier from some status variables
Date: Tue, 6 May 2008 16:33:02 +0100	[thread overview]
Message-ID: <20080506153302.GM4430@implementation.uk.xensource.com> (raw)

minios: drop volatile qualifier from some status variables
since we already use memory barriers as approriate to prevent concurrent
access with event handlers.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>

diff -r 66fdf958c6fc -r 20945f11bf10 extras/mini-os/include/lib.h
--- a/extras/mini-os/include/lib.h	Tue May 06 12:07:32 2008 +0100
+++ b/extras/mini-os/include/lib.h	Tue May 06 15:40:02 2008 +0100
@@ -162,7 +162,7 @@ extern struct file {
              * wakes select for this FD. */
             struct {
                 evtchn_port_t port;
-                volatile unsigned long pending;
+                unsigned long pending;
                 int bound;
             } ports[MAX_EVTCHN_PORTS];
 	} evtchn;
@@ -181,7 +181,7 @@ extern struct file {
             xenbus_event_queue events;
         } xenbus;
     };
-    volatile int read;	/* maybe available for read */
+    int read;	/* maybe available for read */
 } files[];
 
 int alloc_fd(enum fd_type type);

                 reply	other threads:[~2008-05-06 15:33 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=20080506153302.GM4430@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.