]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[S390] Change atomic_read/set to inline functions with barrier semantics.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 22 Aug 2007 11:51:45 +0000 (13:51 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 22 Aug 2007 11:51:49 +0000 (13:51 +0200)
commitc51b9621796c31810fb66509ea1faee4597d9c03
tree777019f91c931e3d4b8eb06161b19511e0a54af8
parent9c5f225f1a2c67c57ff5dfbe0589de20c5706a16
[S390] Change atomic_read/set to inline functions with barrier semantics.

After doing some tests this seems to be the best variant for s390 and
should be correct as well. With gcc 4.2.1 we get the following kernel
image sizes using the default configuration:

atomic_t type volatile, atomic_read/set defines   5311824 bytes
atomic_t type int, atomic_read/set defines        5270864 bytes
atomic_t type int, atomic_read/set inline asm     5279056 bytes
atomic_t type int, atomic_read/set inline barrier 5270864 bytes

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
include/asm-s390/atomic.h