Changeset 2d93f1f9 in mainline for generic/include


Ignore:
Timestamp:
2005-12-06T21:58:18Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a80d406
Parents:
36e7b6c3
Message:

Named spinlocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/synch/spinlock.h

    r36e7b6c3 r2d93f1f9  
    3636#ifdef CONFIG_SMP
    3737struct spinlock {
     38#ifdef CONFIG_DEBUG_SPINLOCK
     39        char *name;
     40#endif
    3841        int val;
    3942};
    4043
    41 extern void spinlock_initialize(spinlock_t *sl);
     44extern void spinlock_initialize(spinlock_t *sl, char *name);
    4245extern void spinlock_lock(spinlock_t *sl);
    4346extern int spinlock_trylock(spinlock_t *sl);
Note: See TracChangeset for help on using the changeset viewer.