Commit 853877cf authored by Domen Puncer's avatar Domen Puncer Committed by Linus Torvalds

[PATCH] Unified spinlock initialization include/linux/wait.h

Unify the spinlock initialization as far as possible.
Signed-off-by: default avatarAmit Gud <gud@eth.net>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2077e5e3
......@@ -79,7 +79,7 @@ typedef struct __wait_queue_head wait_queue_head_t;
static inline void init_waitqueue_head(wait_queue_head_t *q)
{
q->lock = SPIN_LOCK_UNLOCKED;
spin_lock_init(&q->lock);
INIT_LIST_HEAD(&q->task_list);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment