aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/completion.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/completion.h')
-rw-r--r--include/linux/completion.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/completion.h b/include/linux/completion.h
index 9bcebf509b4d..791f053f28b7 100644
--- a/include/linux/completion.h
+++ b/include/linux/completion.h
@@ -9,7 +9,7 @@
9 */ 9 */
10 10
11#include <linux/wait.h> 11#include <linux/wait.h>
12#ifdef CONFIG_LOCKDEP_COMPLETE 12#ifdef CONFIG_LOCKDEP_COMPLETIONS
13#include <linux/lockdep.h> 13#include <linux/lockdep.h>
14#endif 14#endif
15 15
@@ -28,12 +28,12 @@
28struct completion { 28struct completion {
29 unsigned int done; 29 unsigned int done;
30 wait_queue_head_t wait; 30 wait_queue_head_t wait;
31#ifdef CONFIG_LOCKDEP_COMPLETE 31#ifdef CONFIG_LOCKDEP_COMPLETIONS
32 struct lockdep_map_cross map; 32 struct lockdep_map_cross map;
33#endif 33#endif
34}; 34};
35 35
36#ifdef CONFIG_LOCKDEP_COMPLETE 36#ifdef CONFIG_LOCKDEP_COMPLETIONS
37static inline void complete_acquire(struct completion *x) 37static inline void complete_acquire(struct completion *x)
38{ 38{
39 lock_acquire_exclusive((struct lockdep_map *)&x->map, 0, 0, NULL, _RET_IP_); 39 lock_acquire_exclusive((struct lockdep_map *)&x->map, 0, 0, NULL, _RET_IP_);
@@ -64,7 +64,7 @@ static inline void complete_release(struct completion *x) {}
64static inline void complete_release_commit(struct completion *x) {} 64static inline void complete_release_commit(struct completion *x) {}
65#endif 65#endif
66 66
67#ifdef CONFIG_LOCKDEP_COMPLETE 67#ifdef CONFIG_LOCKDEP_COMPLETIONS
68#define COMPLETION_INITIALIZER(work) \ 68#define COMPLETION_INITIALIZER(work) \
69 { 0, __WAIT_QUEUE_HEAD_INITIALIZER((work).wait), \ 69 { 0, __WAIT_QUEUE_HEAD_INITIALIZER((work).wait), \
70 STATIC_CROSS_LOCKDEP_MAP_INIT("(complete)" #work, &(work)) } 70 STATIC_CROSS_LOCKDEP_MAP_INIT("(complete)" #work, &(work)) }