arm64: barriers: use barrier() instead of smp_mb() when !SMP
authorWill Deacon <will.deacon@arm.com>
Fri, 2 May 2014 15:24:12 +0000 (16:24 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 May 2014 16:03:52 +0000 (17:03 +0100)
commitbe6209a6107e0f63544e3e7d00fd5c95434ec80a
treedfddaa0fc846a8b2c1a833b4bf5252161fcb5b6e
parent493e68747e07b69da3d746352525a1ebd6b61d82
arm64: barriers: use barrier() instead of smp_mb() when !SMP

The recently introduced acquire/release accessors refer to smp_mb()
in the !CONFIG_SMP case. This is confusing when reading the code, so use
barrier() directly when we know we're UP.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/barrier.h