atomic.h (f24219b4e90cf70ec4a211b17fbabc725a0ddf3c) | atomic.h (7847777a45f9f8bfc8617dbf107bde1ecb59caee) |
---|---|
1#ifndef _ASM_POWERPC_ATOMIC_H_ 2#define _ASM_POWERPC_ATOMIC_H_ 3 4/* 5 * PowerPC atomic operations 6 */ 7 8#include <linux/types.h> --- 455 unchanged lines hidden (view full) --- 464 : "r" (&v->counter), "r" (a), "r" (u) 465 : "cc", "memory"); 466 467 return t != u; 468} 469 470#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0) 471 | 1#ifndef _ASM_POWERPC_ATOMIC_H_ 2#define _ASM_POWERPC_ATOMIC_H_ 3 4/* 5 * PowerPC atomic operations 6 */ 7 8#include <linux/types.h> --- 455 unchanged lines hidden (view full) --- 464 : "r" (&v->counter), "r" (a), "r" (u) 465 : "cc", "memory"); 466 467 return t != u; 468} 469 470#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0) 471 |
472#else /* __powerpc64__ */ 473#include <asm-generic/atomic64.h> 474 | |
475#endif /* __powerpc64__ */ 476 | 472#endif /* __powerpc64__ */ 473 |
477#include <asm-generic/atomic-long.h> | |
478#endif /* __KERNEL__ */ 479#endif /* _ASM_POWERPC_ATOMIC_H_ */ | 474#endif /* __KERNEL__ */ 475#endif /* _ASM_POWERPC_ATOMIC_H_ */ |