diff options
author | Heechul Yun <heechul@illinois.edu> | 2011-07-19 13:26:54 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-22 10:16:27 +0100 |
commit | 4cde7e0dca98e0e93dceb174d83f766d0d637c23 (patch) | |
tree | 6e88278817f2c77fec2c87d10177f827bf336ede /arch/arm/include | |
parent | 24daa15aabaf9ef655f7ca868366c8a4c87397f3 (diff) | |
download | linux-4cde7e0dca98e0e93dceb174d83f766d0d637c23.tar.gz linux-4cde7e0dca98e0e93dceb174d83f766d0d637c23.tar.bz2 linux-4cde7e0dca98e0e93dceb174d83f766d0d637c23.zip |
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>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/bitops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h index b4892a06442c..f4280593dfa3 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. |