Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 765ae317 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Fixup some uninitialized spinlocks.



Fix use of uninitialized spinlocks, caught with spinlock debugging..

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent a252710f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
#include <asm/semaphore.h>
#include <asm/semaphore-helper.h>

spinlock_t semaphore_wake_lock;
DEFINE_SPINLOCK(semaphore_wake_lock);

/*
 * Semaphores are implemented using a two-way counter:
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ asmlinkage void do_##name(unsigned long r4, unsigned long r5, \
#define VMALLOC_OFFSET (8*1024*1024)
#define MODULE_RANGE (8*1024*1024)

spinlock_t die_lock;
DEFINE_SPINLOCK(die_lock);

void die(const char * str, struct pt_regs * regs, long err)
{