[PATCH] powerpc: Implement atomic{, 64}_{read, write}() without volatile

Paul Mackerras paulus at samba.org
Sat Aug 11 10:36:02 EST 2007


Segher Boessenkool writes:

> Instead, use asm() like all other atomic operations already do.
> 
> Also use inline functions instead of macros; this actually
> improves code generation (some code becomes a little smaller,
> probably because of improved alias information -- just a few
> hundred bytes total on a default kernel build, nothing shocking).
> 
> Signed-off-by: Segher Boessenkool <segher at kernel.crashing.org>

Looks OK to me.  In the hope that Chris Snook will pick it up and
include it with his other atomic changes:

Acked-by: Paul Mackerras <paulus at samba.org>



More information about the Linuxppc-dev mailing list