Thread (19 messages) flat view 19 messages, 15 authors, 2011-05-09

Re: [PATCH] atomic: add *_dec_not_zero

From: Mike Frysinger <hidden>
Date: 2011-05-09 02:39:10
Also in: linux-alpha, linux-arch, linux-arm-kernel, linux-mips, linux-s390, linux-sh, lkml, sparclinux

On Sun, May 8, 2011 at 05:33, Sven Eckelmann wrote:
Russell King - ARM Linux wrote:
[...]
quoted
Do we need atomic_dec_not_zero() et.al. in every arch header - is there =
no
quoted
generic header which it could be added to?
Mike Frysinger already tried to answer it in
[ref]:
quoted
that's what asm-generic is for. =C2=A0if the arch isnt using it, it's
either because the arch needs to convert to it, or they're using SMP
and asm-generic doesnt yet support that for atomic.h.

for example, the Blackfin port only needed updating for the SMP case.
in the non-SMP case, we're getting the def from asm-generic/atomic.h.
Feel free to change that but I just followed the style used by all other
macros and will not redesign the complete atomic*.h idea.
what you're doing is currently correct.  i think merging SMP support
into asm-generic for atomic* will take a bit of pondering first.
-mike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help