diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/srcu.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/srcu.h b/include/linux/srcu.h index 5b49d41868c8..15354db3e865 100644 --- a/include/linux/srcu.h +++ b/include/linux/srcu.h | |||
@@ -32,18 +32,13 @@ | |||
32 | 32 | ||
33 | struct srcu_struct_array { | 33 | struct srcu_struct_array { |
34 | unsigned long c[2]; | 34 | unsigned long c[2]; |
35 | unsigned long seq[2]; | ||
35 | }; | 36 | }; |
36 | 37 | ||
37 | /* Bit definitions for field ->c above and ->snap below. */ | ||
38 | #define SRCU_USAGE_BITS 1 | ||
39 | #define SRCU_REF_MASK (ULONG_MAX >> SRCU_USAGE_BITS) | ||
40 | #define SRCU_USAGE_COUNT (SRCU_REF_MASK + 1) | ||
41 | |||
42 | struct srcu_struct { | 38 | struct srcu_struct { |
43 | unsigned completed; | 39 | unsigned completed; |
44 | struct srcu_struct_array __percpu *per_cpu_ref; | 40 | struct srcu_struct_array __percpu *per_cpu_ref; |
45 | struct mutex mutex; | 41 | struct mutex mutex; |
46 | unsigned long snap[NR_CPUS]; | ||
47 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 42 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
48 | struct lockdep_map dep_map; | 43 | struct lockdep_map dep_map; |
49 | #endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */ | 44 | #endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */ |