mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] move xchg/cmpxchg to atomic.h
  2001-01-02  9:03   ` David S. Miller
@ 2001-01-02 11:22 Matthew Wilcox
  2001-01-02  8:11 ` Grant Grundler
  2001-01-02 11:59 ` Andi Kleen
  1 sibling, 2 replies; 10+ messages in thread
From: Matthew Wilcox @ 2001-01-02 11:22 UTC (permalink / raw)
  To: David S. Miller; +Cc: grundler, linux-kernel, alan, parisc-linux

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/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-01-02 22:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-02 11:22 [PATCH] move xchg/cmpxchg to atomic.h Matthew Wilcox
2001-01-02  8:11 ` Grant Grundler
2001-01-02  9:03   ` David S. Miller
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 20:39     ` Grant Grundler
2001-01-02 11:59 ` Andi Kleen
2001-01-02 17:18   ` Alan Cox
2001-01-02 19:51     ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®