From: Michael Ellerman Date: Mon, 20 Feb 2006 08:07:31 +0000 (+1100) Subject: [PATCH] powerpc: Initialise hvlpevent_queue.lock correctly X-Git-Tag: v2.6.16-rc5~55^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bd6ef57e08d6cce32e93f9fc7b93d361b6a7884f;p=linux-2.6-omap-h63xx.git [PATCH] powerpc: Initialise hvlpevent_queue.lock correctly 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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/platforms/iseries/lpevents.c b/arch/powerpc/platforms/iseries/lpevents.c index 0b885300d1d..8ca7b939635 100644 --- a/arch/powerpc/platforms/iseries/lpevents.c +++ b/arch/powerpc/platforms/iseries/lpevents.c @@ -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);