Skip to content
Commit f6dc8c5b authored by Chase Venters's avatar Chase Venters Committed by Linus Torvalds
Browse files

[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: default avatarChase Venters <chase.venters@clientec.com>
Acked-by: default avatarArjan van de Ven <arjan@Linux.intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0f749646
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment