From: Heechul Yun Date: Tue, 19 Jul 2011 12:26:54 +0000 (+0100) Subject: ARM: 6998/2: kernel: use proper memory barriers for bitops X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4cde7e0dca98e0e93dceb174d83f766d0d637c23;p=deliverable%2Flinux.git 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 Acked-by: Catalin Marinas Signed-off-by: Russell King --- 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 #include -#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.