diff options
Diffstat (limited to 'include/linux/lockdep.h')
| -rw-r--r-- | include/linux/lockdep.h | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 1023f349af71..b32256e9e944 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -134,7 +134,8 @@ struct held_lock {  	unsigned int read:2;        /* see lock_acquire() comment */  	unsigned int check:1;       /* see lock_acquire() comment */  	unsigned int hardirqs_off:1; -	unsigned int references:12;					/* 32 bits */ +	unsigned int sync:1; +	unsigned int references:11;					/* 32 bits */  	unsigned int pin_count;  }; @@ -268,6 +269,10 @@ extern void lock_acquire(struct lockdep_map *lock, unsigned int subclass,  extern void lock_release(struct lockdep_map *lock, unsigned long ip); +extern void lock_sync(struct lockdep_map *lock, unsigned int subclass, +		      int read, int check, struct lockdep_map *nest_lock, +		      unsigned long ip); +  /* lock_is_held_type() returns */  #define LOCK_STATE_UNKNOWN	-1  #define LOCK_STATE_NOT_HELD	0 @@ -554,6 +559,7 @@ do {									\  #define lock_map_acquire_read(l)		lock_acquire_shared_recursive(l, 0, 0, NULL, _THIS_IP_)  #define lock_map_acquire_tryread(l)		lock_acquire_shared_recursive(l, 0, 1, NULL, _THIS_IP_)  #define lock_map_release(l)			lock_release(l, _THIS_IP_) +#define lock_map_sync(l)			lock_sync(l, 0, 0, 1, NULL, _THIS_IP_)  #ifdef CONFIG_PROVE_LOCKING  # define might_lock(lock)						\  |