diff options
| author | John W. Linville <linville@tuxdriver.com> | 2006-07-27 14:27:06 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2006-07-27 14:27:06 -0400 |
| commit | 20f99dcf417a28089ef6c877ae97f5dec2eab435 (patch) | |
| tree | b4fe1f3e429d6a82ddaaa8e12899da630cfa8a63 /kernel/wait.c | |
| parent | dd2f5538a157bda68bfa8efb39feaaccdda9e74e (diff) | |
| parent | 64821324ca49f24be1a66f2f432108f96a24e596 (diff) | |
Merge branch 'from-linus' into upstream
Diffstat (limited to 'kernel/wait.c')
| -rw-r--r-- | kernel/wait.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/wait.c b/kernel/wait.c index a1d57aeb7f75..59a82f63275d 100644 --- a/kernel/wait.c +++ b/kernel/wait.c | |||
| @@ -10,9 +10,13 @@ | |||
| 10 | #include <linux/wait.h> | 10 | #include <linux/wait.h> |
| 11 | #include <linux/hash.h> | 11 | #include <linux/hash.h> |
| 12 | 12 | ||
| 13 | struct lock_class_key waitqueue_lock_key; | 13 | void init_waitqueue_head(wait_queue_head_t *q) |
| 14 | { | ||
| 15 | spin_lock_init(&q->lock); | ||
| 16 | INIT_LIST_HEAD(&q->task_list); | ||
| 17 | } | ||
| 14 | 18 | ||
| 15 | EXPORT_SYMBOL(waitqueue_lock_key); | 19 | EXPORT_SYMBOL(init_waitqueue_head); |
| 16 | 20 | ||
| 17 | void fastcall add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) | 21 | void fastcall add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) |
| 18 | { | 22 | { |
