From: Matthew Wilcox <matthew@wil.cx>
To: "David S. Miller" <davem@redhat.com>
Cc: grundler@cup.hp.com, linux-kernel@vger.kernel.org,
alan@lxorguk.ukuu.org.uk, parisc-linux@thepuffingroup.com
Subject: Re: [PATCH] move xchg/cmpxchg to atomic.h
Date: Tue, 2 Jan 2001 11:22:42 +0000 [thread overview]
Message-ID: <20010102112242.A7040@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <200101020811.AAA26525@milano.cup.hp.com> <200101020903.BAA14334@pizda.ninka.net>
In-Reply-To: <200101020903.BAA14334@pizda.ninka.net>; from davem@redhat.com on Tue, Jan 02, 2001 at 01:03:48AM -0800
On Tue, Jan 02, 2001 at 01:03:48AM -0800, David S. Miller wrote:
> If you require an external agent (f.e. your spinlock) because you
> cannot implement xchg with a real atomic sequence, this breaks the
> above assumptions.
We really can't. We _only_ have load-and-zero. And it has to be 16-byte
aligned. xchg() is just not something the CPU implements.
--
Revolutions do not require corporate support.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-02 12:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-02 8:11 [PATCH] move xchg/cmpxchg to atomic.h Grant Grundler
2001-01-02 9:03 ` David S. Miller
2001-01-02 11:22 ` Matthew Wilcox [this message]
2001-01-02 11:21 ` David S. Miller
2001-01-02 20:44 ` Roman Zippel
2001-01-02 22:05 ` Daniel Phillips
2001-01-02 11:59 ` Andi Kleen
2001-01-02 17:18 ` Alan Cox
2001-01-02 19:51 ` Linus Torvalds
2001-01-02 20:39 ` Grant Grundler
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=20010102112242.A7040@parcelfarce.linux.theplanet.co.uk \
--to=matthew@wil.cx \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=davem@redhat.com \
--cc=grundler@cup.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=parisc-linux@thepuffingroup.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox