Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2005-01-20 16:17:28 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:17:28 -0800
commit4c7256e5ee0d7e38ba82463e6836faf436002bd1 (patch)
tree22c7a2b60397831cbb68b0681006bb9f31c316a7
parentae9cad5606e012a901a0d2cecac50ea0c694e967 (diff)
[PATCH] Lock initializer cleanup: Core
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> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--lib/kernel_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c
index 8819c12a74ee..c739bfcad659 100644
--- a/lib/kernel_lock.c
+++ b/lib/kernel_lock.c
@@ -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);
/*