19 May 2013 00:21
[PATCH] parisc: use arch_spinlock_t instead of raw_spinlock_t in irqstacks
Helge Deller <deller <at> gmx.de>
2013-05-18 22:21:13 GMT
2013-05-18 22:21:13 GMT
We need to use arch_spinlock_t spinlocks instead of raw_spinlock_t
spinlocks for irqstack protection else we will hit the "trylock failure
on UP" error message with CONFIG_SMP=n and CONFIG_DEBUG_SPINLOCK=y.
Since we can be called recursive here even on UP (we are in the irq
handler which handles even irq bh) this spinlock error message is just
wrong.
Signed-off-by: Helge Deller <deller <at> gmx.de>
diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h
index cfbc439..b2dca96 100644
--- a/arch/parisc/include/asm/processor.h
+++ b/arch/parisc/include/asm/processor.h
<at> <at> -69,7 +69,7 <at> <at>
union irq_stack_union {
unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];
- raw_spinlock_t lock;
+ arch_spinlock_t lock;
};
DECLARE_PER_CPU(union irq_stack_union, irq_stack_union);
diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c
index 55237a7..9ba8e5a 100644
--- a/arch/parisc/kernel/irq.c
+++ b/arch/parisc/kernel/irq.c
<at> <at> -443,14 +451,14 <at> <at> panic_check:
#ifdef CONFIG_IRQSTACKS
(Continue reading)
RSS Feed