Changeset 313b617 in mainline for kernel/generic/src/synch/spinlock.c
- Timestamp:
- 2010-05-26T18:04:55Z (13 years ago)
- Branches:
- lfn, master, serial
- Children:
- c8e99bb
- Parents:
- 3c664d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/spinlock.c
r3c664d6 r313b617 177 177 } 178 178 179 /** Find out whether the spinlock is currently unlocked.180 *181 * @param lock Spinlock.182 * @return True if the spinlock is not locked, false otherwise.183 */184 bool spinlock_unlocked(spinlock_t *lock)185 {186 return atomic_get(&lock->val) == 0;187 }188 189 179 #endif 190 180 … … 344 334 } 345 335 346 /** Find out whether the IRQ spinlock is currently unlocked.347 *348 * @param lock IRQ spinlock.349 * @return True if the IRQ spinlock is not locked, false otherwise.350 */351 bool irq_spinlock_unlocked(irq_spinlock_t *ilock)352 {353 return spinlock_unlocked(&ilock->lock);354 }355 356 336 /** @} 357 337 */
Note: See TracChangeset
for help on using the changeset viewer.