[ARM] 4241/1: Define mb() as compiler barrier on a uniprocessor system
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Feb 2007 11:30:38 +0000 (12:30 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 2 Mar 2007 11:59:00 +0000 (11:59 +0000)
commit9623b3732d11b0a18d9af3419f680d27ea24b014
tree9f00b744060872ca3ad1518002f67376d3050d45
parent5bfe8cb62127b5eb799f5724764abe914e49860e
[ARM] 4241/1: Define mb() as compiler barrier on a uniprocessor system

Currently, the mb() is defined as a DMB operation on ARMv6, even for
UP systems. This patch defines mb() as a compiler barrier only. For
the SMP case, the smp_* variants should be used anyway and the patch
defines them as DMB.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/system.h