Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- lib/asm-generic/barrier.h | 10 ++++++++++ lib/x86/asm/barrier.h | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/asm-generic/barrier.h b/lib/asm-generic/barrier.h index 21c88e9..12ae782 100644 --- a/lib/asm-generic/barrier.h +++ b/lib/asm-generic/barrier.h @@ -18,4 +18,14 @@ #define wmb() asm volatile("":::"memory") #endif +#ifndef smp_mb +#define smp_mb() mb() +#endif +#ifndef smp_rmb +#define smp_rmb() rmb() +#endif +#ifndef smp_wmb +#define smp_wmb() wmb() +#endif + #endif /* _ASM_BARRIER_H_ */ diff --git a/lib/x86/asm/barrier.h b/lib/x86/asm/barrier.h index c12c2f6..7c108bd 100644 --- a/lib/x86/asm/barrier.h +++ b/lib/x86/asm/barrier.h @@ -10,7 +10,6 @@ #define rmb() asm volatile("lfence":::"memory") #define wmb() asm volatile("sfence":::"memory") -#define smp_mb() mb() #define smp_rmb() barrier() #define smp_wmb() barrier() -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html