[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)
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>

No differences found