CRISv32: ETRAXFS: Fix recursive spinlock
authorJesper Nilsson <jespern@axis.com>
Mon, 27 Oct 2014 08:11:31 +0000 (09:11 +0100)
committerJesper Nilsson <jespern@axis.com>
Fri, 19 Dec 2014 23:06:04 +0000 (00:06 +0100)
commita3199ad90ac33c1afae0fa3dbf2e0fe4ee827fa7
treee3f1feb76da1db3d59351ed2c19707bed2855882
parent9f1ad51b32173a2da3c4fab58bc4f87d6094868f
CRISv32: ETRAXFS: Fix recursive spinlock

Move pinmux alloc/dealloc code into functions that don't take
the spinlock so we can use from code that has the spinlock already.

CRISv32 has no working SMP, so spinlocks becomes a NOP,
so deadlock was never seen.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/arch-v32/mach-fs/pinmux.c
arch/cris/include/arch-v32/mach-fs/mach/pinmux.h