public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Roland Dreier <roland@topspin.com>
To: Bart De Schuymer <bdschuym@pandora.be>
Cc: linux-kernel@vger.kernel.org
Subject: Re: memory_barrier
Date: Sat, 09 Apr 2005 12:28:00 -0700	[thread overview]
Message-ID: <52d5t33g3j.fsf@topspin.com> (raw)
In-Reply-To: <1113071696.3383.7.camel@localhost.localdomain> (Bart De Schuymer's message of "Sat, 09 Apr 2005 18:34:56 +0000")

    Bart> Hi, Is there any reason why __memory_barrier() is still
    Bart> referenced in the kernel source?

    Bart> grep -r memory_barrier gave the following back, which at
    Bart> first seems to suggest barrier() is defined using some
    Bart> phantom __memory_barrier(), quite deceiving...

Notice that it's used in <linux/compiler-intel.h> -- the Intel
compiler has an intrinsic called __memory_barrier().  So the
definition of barrier() using this intrinsic is entirely correct and
appropriate.

 - R.

      reply	other threads:[~2005-04-09 20:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-09 18:34 memory_barrier Bart De Schuymer
2005-04-09 19:28 ` Roland Dreier [this message]

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=52d5t33g3j.fsf@topspin.com \
    --to=roland@topspin.com \
    --cc=bdschuym@pandora.be \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox