Module: xenomai-head Branch: master Commit: 9b9b125af354a4cad9bdc7f6bdff42e1395692f0 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=9b9b125af354a4cad9bdc7f6bdff42e1395692f0
Author: Gilles Chanteperdrix <[email protected]> Date: Wed Oct 20 05:52:25 2010 +0200 arm: add missing armv6+ implementation of cpu_relax in user-space --- include/asm-arm/atomic.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-arm/atomic.h b/include/asm-arm/atomic.h index e8945d7..3701e41 100644 --- a/include/asm-arm/atomic.h +++ b/include/asm-arm/atomic.h @@ -55,6 +55,10 @@ extern void __xnarch_xchg_called_with_bad_pointer(void); #endif /* __LINUX_ARM_ARCH == 6 */ #endif /* CONFIG_SMP */ +#ifndef __KERNEL__ +#define cpu_relax() xnarch_memory_barrier() +#endif /* __KERNEL__ */ + static inline unsigned long __xnarch_xchg(volatile void *ptr, unsigned long x, int size) { _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
