summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorKumar Gala2007-07-10 06:49:09 +0200
committerKumar Gala2007-07-10 07:33:14 +0200
commit74a0ba61b1ca96d6bb98889a7d95cd057165da49 (patch)
tree1f062fa32459fd564a7331174fe11b2ad151e829 /include/asm-powerpc
parent[PPC] Add linux/pagemap.h to arch/ppc/mm/tlb.c (diff)
downloadkernel-qcow2-linux-74a0ba61b1ca96d6bb98889a7d95cd057165da49.tar.gz
kernel-qcow2-linux-74a0ba61b1ca96d6bb98889a7d95cd057165da49.tar.xz
kernel-qcow2-linux-74a0ba61b1ca96d6bb98889a7d95cd057165da49.zip
[POWERPC] Move inline asm eieio to using eieio inline function
Use the eieio function so we can redefine what eieio does rather than direct inline asm. This is part code clean up and partially because not all PPCs have eieio (book-e has mbar that maps to eieio). Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h
index 09621f611dbc..eff3de953712 100644
--- a/include/asm-powerpc/system.h
+++ b/include/asm-powerpc/system.h
@@ -43,7 +43,7 @@
#ifdef CONFIG_SMP
#define smp_mb() mb()
#define smp_rmb() rmb()
-#define smp_wmb() __asm__ __volatile__ ("eieio" : : : "memory")
+#define smp_wmb() eieio()
#define smp_read_barrier_depends() read_barrier_depends()
#else
#define smp_mb() barrier()