Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cde7e0d authored by Heechul Yun's avatar Heechul Yun Committed by Russell King
Browse files

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: default avatarHeechul Yun <hyun@nvidia.com>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 24daa15a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.