summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeechul Yun <heechul@illinois.edu>2011-07-19 13:26:54 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-22 10:16:27 +0100
commit4cde7e0dca98e0e93dceb174d83f766d0d637c23 (patch)
tree6e88278817f2c77fec2c87d10177f827bf336ede
parent24daa15aabaf9ef655f7ca868366c8a4c87397f3 (diff)
ARM: 6998/2: kernel: use proper memory barriers for bitops
Improve scalability by avoiding costly and unnecessary L2 cache sync in handling bitops. Signed-off-by: Heechul Yun <hyun@nvidia.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/include/asm/bitops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h
index b4892a06442..f4280593dfa 100644
--- a/arch/arm/include/asm/bitops.h
+++ b/arch/arm/include/asm/bitops.h
@@ -26,8 +26,8 @@
#include <linux/compiler.h>
#include <asm/system.h>
-#define smp_mb__before_clear_bit() mb()
-#define smp_mb__after_clear_bit() mb()
+#define smp_mb__before_clear_bit() smp_mb()
+#define smp_mb__after_clear_bit() smp_mb()
/*
* These functions are the basis of our bit ops.