1 #ifndef _ASM_POWERPC_SYNCH_H
2 #define _ASM_POWERPC_SYNCH_H
5 #include <linux/stringify.h>
8 #define __SUBARCH_HAS_LWSYNC
11 #ifdef __SUBARCH_HAS_LWSYNC
12 # define LWSYNC lwsync
18 #define ISYNC_ON_SMP "\n\tisync\n"
19 #define LWSYNC_ON_SMP __stringify(LWSYNC) "\n"
25 static inline void eieio(void)
27 __asm__ __volatile__ ("eieio" : : : "memory");
30 static inline void isync(void)
32 __asm__ __volatile__ ("isync" : : : "memory");
35 #endif /* __KERNEL__ */
36 #endif /* _ASM_POWERPC_SYNCH_H */