2 * arch/alpha/lib/dec_and_lock.c
4 * ll/sc version of atomic_dec_and_lock()
8 #include <linux/spinlock.h>
9 #include <asm/atomic.h>
12 .global _atomic_dec_and_lock \n\
13 .ent _atomic_dec_and_lock \n\
15 _atomic_dec_and_lock: \n\
17 1: ldl_l $1, 0($16) \n\
26 3: ldgp $29, 0($29) \n\
27 br $atomic_dec_and_lock_1..ng \n\
31 .end _atomic_dec_and_lock");
33 static int __attribute_used__
34 atomic_dec_and_lock_1(atomic_t *atomic, spinlock_t *lock)
38 if (atomic_dec_and_test(atomic))