Add smp_mb(), smb_rmb(), smb_wmb() for x86 matching the current kernel. Signed-off-by: Roman Kagan <rkagan@xxxxxxxxxxxxx> --- lib/x86/asm/barrier.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/x86/asm/barrier.h b/lib/x86/asm/barrier.h index d602a2c..85dc8b3 100644 --- a/lib/x86/asm/barrier.h +++ b/lib/x86/asm/barrier.h @@ -6,8 +6,14 @@ * This work is licensed under the terms of the GNU LGPL, version 2. */ +#include <processor.h> + #define mb() asm volatile("mfence":::"memory") #define rmb() asm volatile("lfence":::"memory") #define wmb() asm volatile("sfence":::"memory") +#define smp_mb() mb() +#define smp_rmb() barrier() +#define smp_wmb() barrier() + #endif -- 2.5.5 -- 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