1 #ifndef _ASM_MICROBLAZE_ATOMIC_H
2 #define _ASM_MICROBLAZE_ATOMIC_H
4 #include <asm-generic/atomic.h>
7 * Atomically test *v and decrement if it is greater than 0.
8 * The function returns the old value of *v minus 1.
10 static inline int atomic_dec_if_positive(atomic_t *v)
15 local_irq_save(flags);
19 local_irq_restore(flags);
24 #endif /* _ASM_MICROBLAZE_ATOMIC_H */