public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* atomic ops for a VM fix
@ 2004-05-13 20:35 Andrew Morton
  2004-05-13 20:37 ` Andrew Morton
  2004-05-13 21:52 ` Ivan Kokshaysky
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Morton @ 2004-05-13 20:35 UTC (permalink / raw)
  To: linux-arch

Guys, I have four patches here which I'd like to merge into Linus's tree
within a week.

They require that the architecture implement atomic_add_negative() and
atomic_inc_and_test().  I managed to cobble these together for many
architectures, but there are a few gaps.  Please review the third and
fourth patches.

Dave, sparc64 is missing atomic_add_negative(), sorry.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: atomic ops for a VM fix
@ 2004-05-14 11:36 Martin Schwidefsky
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Schwidefsky @ 2004-05-14 11:36 UTC (permalink / raw)
  To: Andrew Morton; +Cc: davidm, davidm, ink, linux-arch





> Either s390's atomic_inc_and_test() is wrong, or their
atomic_inc_return()
> is wrong.  I think the former.

atomic_inc_return is fine, atomic_inc_and_test is broken. The __CS_LOOP always
returns the new value.

blue skies,
   Martin

Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH
Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247
E-Mail: schwidefsky@de.ibm.com

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

end of thread, other threads:[~2004-05-14 11:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-13 20:35 atomic ops for a VM fix Andrew Morton
2004-05-13 20:37 ` Andrew Morton
2004-05-13 21:52 ` Ivan Kokshaysky
2004-05-13 22:33   ` David Mosberger
2004-05-13 22:52     ` Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2004-05-14 11:36 Martin Schwidefsky

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