powerpc/64: Add CONFIG_PPC_BARRIER_NOSPEC
[sfrench/cifs-2.6.git] / arch / powerpc / include / asm / barrier.h
index de1316874e450003e98ead3cbfbf3d87ffab75a5..cdc6960506e2b850c19c16a48f3ab9327fcb1cc3 100644 (file)
@@ -78,7 +78,7 @@ do {                                                                  \
        ___p1;                                                          \
 })
 
-#ifdef CONFIG_PPC_BOOK3S_64
+#ifdef CONFIG_PPC_BARRIER_NOSPEC
 /*
  * Prevent execution of subsequent instructions until preceding branches have
  * been fully resolved and are no longer executing speculatively.
@@ -88,10 +88,10 @@ do {                                                                        \
 // This also acts as a compiler barrier due to the memory clobber.
 #define barrier_nospec() asm (stringify_in_c(barrier_nospec_asm) ::: "memory")
 
-#else /* !CONFIG_PPC_BOOK3S_64 */
+#else /* !CONFIG_PPC_BARRIER_NOSPEC */
 #define barrier_nospec_asm
 #define barrier_nospec()
-#endif
+#endif /* CONFIG_PPC_BARRIER_NOSPEC */
 
 #include <asm-generic/barrier.h>