[PATCH] powerpc: Initialise hvlpevent_queue.lock correctly
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 20 Feb 2006 08:07:31 +0000 (19:07 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 23 Feb 2006 10:44:19 +0000 (21:44 +1100)
When I changed the hvlpevent_queue code to use a spinlock instead of a
custom atomic (719d1cd86780c156f954fc34f34481adac197aec) I didn't
initialise the lock anywhere, oops.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/lpevents.c

index 0b885300d1d1a9360a32a2418e5d0e9c024c1faf..8ca7b939635574c5079513060ce4d6657cf985f8 100644 (file)
@@ -184,6 +184,8 @@ void setup_hvlpevent_queue(void)
 {
        void *eventStack;
 
+       spin_lock_init(&hvlpevent_queue.lock);
+
        /* Allocate a page for the Event Stack. */
        eventStack = alloc_bootmem_pages(LpEventStackSize);
        memset(eventStack, 0, LpEventStackSize);