Skip to content

Commit

Permalink
ARM: 6998/2: kernel: use proper memory barriers for bitops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heechul Yun authored and Russell King committed Jul 22, 2011
1 parent 24daa15 commit 4cde7e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/include/asm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4cde7e0

Please sign in to comment.