[PATCH] Make cpu_relax() imply barrier() on all arches
authorChase Venters <chase.venters@clientec.com>
Sat, 8 Jul 2006 16:10:29 +0000 (11:10 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 12 Jul 2006 19:56:45 +0000 (12:56 -0700)
commitf6dc8c5b8e04ce28720155383e971561a23899d5
treedf590e4e096ac332a7d95ef96275bebd57ce70c9
parent0f74964627e0ece4ac8da0e2cd01906ec322b4fe
[PATCH] Make cpu_relax() imply barrier() on all arches

During the recent discussion of taking 'volatile' off of the spinlock, I
noticed that while most arches #define cpu_relax() such that it implies
barrier(), some arches define cpu_relax() to be empty.

This patch changes the definition of cpu_relax() for frv, h8300, m68knommu,
sh, sh64, v850 and xtensa from an empty while(0) to the compiler barrier().

Signed-off-by: Chase Venters <chase.venters@clientec.com>
Acked-by: Arjan van de Ven <arjan@Linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-frv/processor.h
include/asm-h8300/processor.h
include/asm-m68knommu/processor.h
include/asm-sh/processor.h
include/asm-sh64/processor.h
include/asm-v850/processor.h
include/asm-xtensa/processor.h