Release 4.10 arch/microblaze/include/asm/atomic.h
#ifndef _ASM_MICROBLAZE_ATOMIC_H
#define _ASM_MICROBLAZE_ATOMIC_H
#include <asm/cmpxchg.h>
#include <asm-generic/atomic.h>
#include <asm-generic/atomic64.h>
/*
* Atomically test *v and decrement if it is greater than 0.
* The function returns the old value of *v minus 1.
*/
static inline int atomic_dec_if_positive(atomic_t *v)
{
unsigned long flags;
int res;
local_irq_save(flags);
res = v->counter - 1;
if (res >= 0)
v->counter = res;
local_irq_restore(flags);
return res;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
michal simek | michal simek | 51 | 100.00% | 1 | 100.00% |
| Total | 51 | 100.00% | 1 | 100.00% |
#define atomic_dec_if_positive atomic_dec_if_positive
#endif /* _ASM_MICROBLAZE_ATOMIC_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
michal simek | michal simek | 63 | 85.14% | 1 | 20.00% |
shaohua li | shaohua li | 4 | 5.41% | 1 | 20.00% |
david howells | david howells | 3 | 4.05% | 1 | 20.00% |
daniel borkmann | daniel borkmann | 3 | 4.05% | 1 | 20.00% |
remis lima baima | remis lima baima | 1 | 1.35% | 1 | 20.00% |
| Total | 74 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.