/* * Atomically test *v and decrement if it is greater than 0. * The function returns the old value of *v minus 1. */staticinlineintatomic_dec_if_positive(atomic_t*v){unsignedlongflags;intres;local_irq_save(flags);res=v->counter-1;if(res>=0)v->counter=res;local_irq_restore(flags);returnres;}#endif /* _ASM_MICROBLAZE_ATOMIC_H */