Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/linux/mutex.h

    r76 r679  
    33
    44#include <asm/semaphore.h>
     5#include <linux/list.h>
     6#include <linux/types.h>
     7
     8struct mutex {
     9        atomic_long_t           owner;
     10        spinlock_t              wait_lock;
     11#ifdef CONFIG_MUTEX_SPIN_ON_OWNER
     12        struct optimistic_spin_queue osq; /* Spinner MCS lock */
     13#endif
     14        struct list_head        wait_list;
     15#ifdef CONFIG_DEBUG_MUTEXES
     16        void                    *magic;
     17#endif
     18#ifdef CONFIG_DEBUG_LOCK_ALLOC
     19        struct lockdep_map      dep_map;
     20#endif
     21};
    522
    623#define mutex semaphore
     
    1128#define mutex_lock_interruptible(x) down_interruptible(x)
    1229#define mutex_unlock(x)         up(x)
    13 
     30#define mutex_lock_nested(lock, subclass) mutex_lock(lock)
     31static inline int mutex_trylock(struct mutex *lock) {return -1; }
    1432#endif
Note: See TracChangeset for help on using the changeset viewer.