diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-02-20 19:07:31 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-23 21:44:19 +1100 |
commit | bd6ef57e08d6cce32e93f9fc7b93d361b6a7884f (patch) | |
tree | d2a7553c425a574d7204281fada8a14dd7e84ace /arch/powerpc | |
parent | 9e956c2dac9bec602ed1ba29181b45ba6d2b6448 (diff) | |
download | op-kernel-dev-bd6ef57e08d6cce32e93f9fc7b93d361b6a7884f.zip op-kernel-dev-bd6ef57e08d6cce32e93f9fc7b93d361b6a7884f.tar.gz |
[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 <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/iseries/lpevents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/iseries/lpevents.c b/arch/powerpc/platforms/iseries/lpevents.c index 0b88530..8ca7b939 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); |