hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/completion.h
....@@ -9,7 +9,7 @@
99 * See kernel/sched/completion.c for details.
1010 */
1111
12
-#include <linux/wait.h>
12
+#include <linux/swait.h>
1313
1414 /*
1515 * struct completion - structure used to maintain state for a "completion"
....@@ -25,7 +25,7 @@
2525 */
2626 struct completion {
2727 unsigned int done;
28
- wait_queue_head_t wait;
28
+ struct swait_queue_head wait;
2929 };
3030
3131 #define init_completion_map(x, m) __init_completion(x)
....@@ -34,7 +34,7 @@
3434 static inline void complete_release(struct completion *x) {}
3535
3636 #define COMPLETION_INITIALIZER(work) \
37
- { 0, __WAIT_QUEUE_HEAD_INITIALIZER((work).wait) }
37
+ { 0, __SWAIT_QUEUE_HEAD_INITIALIZER((work).wait) }
3838
3939 #define COMPLETION_INITIALIZER_ONSTACK_MAP(work, map) \
4040 (*({ init_completion_map(&(work), &(map)); &(work); }))
....@@ -85,7 +85,7 @@
8585 static inline void __init_completion(struct completion *x)
8686 {
8787 x->done = 0;
88
- init_waitqueue_head(&x->wait);
88
+ init_swait_queue_head(&x->wait);
8989 }
9090
9191 /**