mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Unified spinlock initialization include/linux/wait.h
@ 2005-01-25 11:35 Amit Gud
  0 siblings, 0 replies; only message in thread
From: Amit Gud @ 2005-01-25 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernel-janitors, gud

Unify the spinlock initialization as far as possible.

Do consider applying.

Signed-off-by: Amit Gud <gud@eth.net>

--- orig/include/linux/wait.h	2005-01-20 20:06:42.000000000 +0530
+++ linux-2.6.11-rc2/include/linux/wait.h	2005-01-25 16:41:31.000000000 +0530
@@ -79,7 +79,7 @@ typedef struct __wait_queue_head wait_qu
 
 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);
 }
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-25 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-25 11:35 [PATCH] Unified spinlock initialization include/linux/wait.h Amit Gud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome