]> err.no Git - linux-2.6/commit
[POWERPC] Implement atomic{, 64}_{read, write}() without volatile
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 11 Aug 2007 00:15:30 +0000 (10:15 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Aug 2007 01:01:58 +0000 (11:01 +1000)
commit9f0cbea0d8cc47801b853d3c61d0e17475b0cc89
treeb1cd6fe848a7544a834d0073297193069c24c7dd
parentc6d4267eced79775399f256fbb4adb671e9b597e
[POWERPC] Implement atomic{, 64}_{read, write}() without volatile

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@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/atomic.h