All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Andrew Morton <akpm@osdl.org>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/4] atomic_cmpxchg and friends
Date: Sun, 25 Sep 2005 22:09:31 +0100	[thread overview]
Message-ID: <1127682571.1168.25.camel@localhost.localdomain> (raw)
In-Reply-To: <4334BCF3.1010908@yahoo.com.au>


 
+#define atomic_cmpxchg(v, old, new) ((int)cmpxchg(&((v)->counter), old,
new))
+

Not all X86 has cmpxchg so the code there won't compile for all cases.


  parent reply	other threads:[~2005-09-25 20:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-24  2:41 [PATCH 1/4] atomic_cmpxchg and friends Nick Piggin
2005-09-24  2:45 ` [PATCH 2/4] atomic_inc_not_zero Nick Piggin
2005-09-24  2:47   ` [PATCH 3/4] convert rcuref Nick Piggin
2005-09-24  2:56     ` [PATCH 4/4] convert dec_and_lock Nick Piggin
2005-09-24  2:57   ` [PATCH 2/4] atomic_inc_not_zero Nick Piggin
2005-09-25 21:09 ` Alan Cox [this message]
2005-09-26  1:07   ` [PATCH 1/4] atomic_cmpxchg and friends Nick Piggin

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=1127682571.1168.25.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    /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.