615f53992c654e4f78625bf8708d5d92c7c12b09
1 #ifndef _ASM_MICROBLAZE_ATOMIC_H
2 #define _ASM_MICROBLAZE_ATOMIC_H
4 #include <asm-generic/atomic.h>
5 #include <asm-generic/atomic64.h>
8 * Atomically test *v and decrement if it is greater than 0.
9 * The function returns the old value of *v minus 1.
11 static inline int atomic_dec_if_positive(atomic_t
*v
)
16 local_irq_save(flags
);
20 local_irq_restore(flags
);
25 #endif /* _ASM_MICROBLAZE_ATOMIC_H */
This page took 0.032544 seconds and 5 git commands to generate.