aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/hardirq.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2013-05-24 17:27:35 -0400
committerHelge Deller <deller@gmx.de>2013-05-24 17:29:01 -0400
commitd96b51ec14650b490ab98e738bcc02309396e5bc (patch)
treebcc82f90634f689e629ed692f2fa6f1654d3cbbf /arch/parisc/include/asm/hardirq.h
parent2c2d32bed1a1bb6121494965b31badb280f04b0e (diff)
parisc: fix irq stack on UP and SMP
The logic to detect if the irq stack was already in use with raw_spin_trylock() is wrong, because it will generate a "trylock failure on UP" error message with CONFIG_SMP=n and CONFIG_DEBUG_SPINLOCK=y. arch_spin_trylock() can't be used either since in the CONFIG_SMP=n case no atomic protection is given and we are reentrant here. A mutex didn't worked either and brings more overhead by turning off interrupts. So, let's use the fastest path for parisc which is the ldcw instruction. Counting how often the irq stack was used is pretty useless, so just drop this piece of code. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/asm/hardirq.h')
-rw-r--r--arch/parisc/include/asm/hardirq.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/parisc/include/asm/hardirq.h b/arch/parisc/include/asm/hardirq.h
index 4c6dd8da1e5d..241c34518465 100644
--- a/arch/parisc/include/asm/hardirq.h
+++ b/arch/parisc/include/asm/hardirq.h
@@ -17,13 +17,8 @@
17 17
18typedef struct { 18typedef struct {
19 unsigned int __softirq_pending; 19 unsigned int __softirq_pending;
20#ifdef CONFIG_DEBUG_STACKOVERFLOW
21 unsigned int kernel_stack_usage; 20 unsigned int kernel_stack_usage;
22#ifdef CONFIG_IRQSTACKS
23 unsigned int irq_stack_usage; 21 unsigned int irq_stack_usage;
24 unsigned int irq_stack_counter;
25#endif
26#endif
27#ifdef CONFIG_SMP 22#ifdef CONFIG_SMP
28 unsigned int irq_resched_count; 23 unsigned int irq_resched_count;
29 unsigned int irq_call_count; 24 unsigned int irq_call_count;