[PATCH] powerpc: Initialise hvlpevent_queue.lock correctly
When I changed the hvlpevent_queue code to use a spinlock instead of a
custom atomic (719d1cd867
) 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>
This commit is contained in:
parent
9e956c2dac
commit
bd6ef57e08
|
@ -184,6 +184,8 @@ void setup_hvlpevent_queue(void)
|
||||||
{
|
{
|
||||||
void *eventStack;
|
void *eventStack;
|
||||||
|
|
||||||
|
spin_lock_init(&hvlpevent_queue.lock);
|
||||||
|
|
||||||
/* Allocate a page for the Event Stack. */
|
/* Allocate a page for the Event Stack. */
|
||||||
eventStack = alloc_bootmem_pages(LpEventStackSize);
|
eventStack = alloc_bootmem_pages(LpEventStackSize);
|
||||||
memset(eventStack, 0, LpEventStackSize);
|
memset(eventStack, 0, LpEventStackSize);
|
||||||
|
|
Loading…
Reference in New Issue