Message ID | 1253705604-1986-3-git-send-email-vivek.mahajan@freescale.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Kumar Gala |
Headers | show |
diff --git a/arch/powerpc/include/asm/synch.h b/arch/powerpc/include/asm/synch.h index 28f6ddb..8298089 100644 --- a/arch/powerpc/include/asm/synch.h +++ b/arch/powerpc/include/asm/synch.h @@ -23,6 +23,11 @@ static inline void isync(void) { __asm__ __volatile__ ("isync" : : : "memory"); } + +static inline void mbar(int mo) +{ + __asm__ __volatile__ ("mbar %0" : : "i" (mo) : "memory"); +} #endif /* __ASSEMBLY__ */ #if defined(__powerpc64__)
Adds e500/85xx based memory barrier Signed-off-by: Vivek Mahajan <vivek.mahajan@freescale.com> --- arch/powerpc/include/asm/synch.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)