All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [KJ] [PATCH] unified spinlock initialization
@ 2005-01-20 15:36 Matthew Wilcox
  2005-01-20 15:36 ` Amit Gud
                   ` (14 more replies)
  0 siblings, 15 replies; 22+ messages in thread
From: Matthew Wilcox @ 2005-01-20 15:36 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

On Thu, Jan 20, 2005 at 08:56:18PM +0530, Amit Gud wrote:
> Unify the spinlock initialization as far as possible.

Why would you want to replace a statically initialised spinlock with
one that's initialised at runtime?

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 22+ messages in thread
* [PATCH] unified spinlock initialization arch/mips/kernel/irq.c
  2005-01-20 15:36 [KJ] [PATCH] unified spinlock initialization Matthew Wilcox
@ 2005-01-25 11:46 ` Amit Gud
  2005-01-20 15:38 ` Amit Gud
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: Amit Gud @ 2005-01-25 11:34 UTC (permalink / raw)
  To: ralf; +Cc: linux-kernel, kernel-janitors, gud

Unify the spinlock initialization as far as possible.

Do consider applying.

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

--- orig/arch/mips/kernel/irq.c	2005-01-20 20:06:12.000000000 +0530
+++ linux-2.6.11-rc2/arch/mips/kernel/irq.c	2005-01-25 15:29:35.000000000 +0530
@@ -125,7 +125,7 @@ void __init init_IRQ(void)
 		irq_desc[i].action  = NULL;
 		irq_desc[i].depth   = 1;
 		irq_desc[i].handler = &no_irq_type;
-		irq_desc[i].lock = SPIN_LOCK_UNLOCKED;
+		spin_lock_init(&irq_desc[i].lock);
 	}
 
 	arch_init_irq();


^ permalink raw reply	[flat|nested] 22+ messages in thread
* [PATCH] Unified spinlock initialization include/linux/wait.h
  2005-01-20 15:36 [KJ] [PATCH] unified spinlock initialization Matthew Wilcox
@ 2005-01-25 11:47 ` Amit Gud
  2005-01-20 15:38 ` Amit Gud
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 22+ messages 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] 22+ messages in thread

end of thread, other threads:[~2005-01-25 13:43 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 15:36 [KJ] [PATCH] unified spinlock initialization Matthew Wilcox
2005-01-20 15:36 ` Amit Gud
2005-01-20 15:38 ` Amit Gud
2005-01-20 15:39 ` Amit Gud
2005-01-20 15:40 ` Amit Gud
2005-01-24 15:28 ` [KJ] [PATCH] unified spinlock initialization drivers/acpi/ec.c Amit Gud
2005-01-24 15:30 ` [KJ] [PATCH] unified spinlock initialization Amit Gud
2005-01-24 15:41 ` [KJ] [PATCH] unified spinlock initialization drivers/block/DAC960.c Amit Gud
2005-01-24 15:42 ` [KJ] [PATCH] unified spinlock initialization Amit Gud
2005-01-24 15:48 ` Amit Gud
2005-01-24 16:11 ` Randy.Dunlap
2005-01-24 16:25 ` Christophe Lucas
2005-01-24 16:41 ` Domen Puncer
2005-01-25  7:03 ` Christophe Lucas
2005-01-25  7:07 ` [KJ] [PATCH] Unified " Christophe Lucas
2005-01-25 11:33 ` Amit Gud
  -- strict thread matches above, loose matches on Subject: below --
2005-01-25 11:34 [PATCH] unified spinlock initialization arch/mips/kernel/irq.c Amit Gud
2005-01-25 11:46 ` [KJ] " Amit Gud
2005-01-25 13:43 ` [KJ] [PATCH] unified spinlock initialization Matthew Wilcox
2005-01-25 13:43   ` [KJ] [PATCH] unified spinlock initialization arch/mips/kernel/irq.c Matthew Wilcox
2005-01-25 11:35 [PATCH] Unified spinlock initialization include/linux/wait.h Amit Gud
2005-01-25 11:47 ` [KJ] " Amit Gud

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.