提交 bd6ef57e 编写于 作者: M Michael Ellerman 提交者: Paul Mackerras

[PATCH] powerpc: Initialise hvlpevent_queue.lock correctly

When I changed the hvlpevent_queue code to use a spinlock instead of a
custom atomic (719d1cd8) I didn't
initialise the lock anywhere, oops.
Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 9e956c2d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册