
From: Thomas Gleixner <tglx@linutronix.de>

Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/lib/kernel_lock.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN lib/kernel_lock.c~lock-initializer-cleanup-core lib/kernel_lock.c
--- 25/lib/kernel_lock.c~lock-initializer-cleanup-core	Wed Jan 12 16:54:25 2005
+++ 25-akpm/lib/kernel_lock.c	Wed Jan 12 16:54:25 2005
@@ -153,7 +153,7 @@ void __lockfunc unlock_kernel(void)
  *
  * Don't use in new code.
  */
-static spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
+static  __cacheline_aligned_in_smp DEFINE_SPINLOCK(kernel_flag);
 
 
 /*
_
