diff options
author | Heechul Yun <hyun@nvidia.com> | 2011-07-11 18:12:38 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-07-15 16:01:35 -0700 |
commit | 4ae8208660f838a7e31bdc1691026dada2920126 (patch) | |
tree | 359bc13022da14a6a1b72b82039072caf819d8c2 | |
parent | 6b3d1337150aaba81b2509847d4b83b74bcc59b1 (diff) |
ARM: remove unnecesarry L2 cache flush
The memory barrier, mb(), flush L2 cache which is unnecessary
for bit operations because D cache is coherent for all CPUs
This patch improves scalability of the system.
Change-Id: I3bec7ec767849091b6da720869241f3a16a7b5cb
Reviewed-on: http://git-master/r/40504
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Heechul Yun <hyun@nvidia.com>
Reviewed-by: Heechul Yun <hyun@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
-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 338ff19ae447..ee3bf9a7df1f 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. |