x86/uv: Fix uninitialized spinlocks
commitc7e4489fb8616f81319673912fc2682b89636b9b
authorCliff Wickman <cpw@sgi.com>
Wed, 18 Jan 2012 15:40:47 +0000 (18 09:40 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:21:35 +0000 (3 09:21 -0800)
treef99a69c66b0c7659168d4672a8e012248ff5698f
parent2c6b180537f35fc90b94416b09aca07ced98391c
x86/uv: Fix uninitialized spinlocks

commit d2ebc71d472020bc30e29afe8c4d2a85a5b41f56 upstream.

Initialize two spinlocks in tlb_uv.c and also properly define/initialize
the uv_irq_lock.

The lack of explicit initialization seems to be functionally
harmless, but it is diagnosed when these are turned on:

        CONFIG_DEBUG_SPINLOCK=y
        CONFIG_DEBUG_MUTEXES=y
        CONFIG_DEBUG_LOCK_ALLOC=y
        CONFIG_LOCKDEP=y

Signed-off-by: Cliff Wickman <cpw@sgi.com>
Cc: Dimitri Sivanich <sivanich@sgi.com>
Link: http://lkml.kernel.org/r/E1RnXd1-0003wU-PM@eag09.americas.sgi.com
[ Added the uv_irq_lock initialization fix by Dimitri Sivanich ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/platform/uv/tlb_uv.c
arch/x86/platform/uv/uv_irq.c