aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/synch.h
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2008-11-11 17:50:48 +0000
committerPaul Mackerras <paulus@samba.org>2008-11-19 16:04:55 +1100
commit46d075be585eae2b74265e4e64ca38dde16a09c6 (patch)
treed12904aeb09e4f07cf07e6f8b0a9831c953f5d78 /arch/powerpc/include/asm/synch.h
parenta4e22f02f5b6518c1484faea1f88d81802b9feac (diff)
powerpc: Optimise smp_wmb
Change 2d1b2027626d5151fff8ef7c06ca8e7876a1a510 ("powerpc: Fixup lwsync at runtime") removed __SUBARCH_HAS_LWSYNC, causing smp_wmb to revert back to eieio for all CPUs. This restores the behaviour intorduced in 74f0609526afddd88bef40b651da24f3167b10b2 ("powerpc: Optimise smp_wmb on 64-bit processors"). Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/synch.h')
-rw-r--r--arch/powerpc/include/asm/synch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/synch.h b/arch/powerpc/include/asm/synch.h
index 45963e80f55..28f6ddbff4c 100644
--- a/arch/powerpc/include/asm/synch.h
+++ b/arch/powerpc/include/asm/synch.h
@@ -5,6 +5,10 @@
#include <linux/stringify.h>
#include <asm/feature-fixups.h>
+#if defined(__powerpc64__) || defined(CONFIG_PPC_E500MC)
+#define __SUBARCH_HAS_LWSYNC
+#endif
+
#ifndef __ASSEMBLY__
extern unsigned int __start___lwsync_fixup, __stop___lwsync_fixup;
extern void do_lwsync_fixups(unsigned long value, void *fixup_start,