Commit 4b006a3b authored by Russell King's avatar Russell King

[ARM] Add "noirqdebug" option to match x86 option.

parent a6dae6ac
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
*/ */
#define MAX_IRQ_CNT 100000 #define MAX_IRQ_CNT 100000
static int noirqdebug;
static volatile unsigned long irq_err_count; static volatile unsigned long irq_err_count;
static spinlock_t irq_controller_lock = SPIN_LOCK_UNLOCKED; static spinlock_t irq_controller_lock = SPIN_LOCK_UNLOCKED;
static LIST_HEAD(irq_pending); static LIST_HEAD(irq_pending);
...@@ -235,7 +236,7 @@ report_bad_irq(unsigned int irq, struct pt_regs *regs, struct irqdesc *desc, int ...@@ -235,7 +236,7 @@ report_bad_irq(unsigned int irq, struct pt_regs *regs, struct irqdesc *desc, int
static int count = 100; static int count = 100;
struct irqaction *action; struct irqaction *action;
if (!count) if (!count || noirqdebug)
return; return;
count--; count--;
...@@ -863,3 +864,11 @@ void __init init_IRQ(void) ...@@ -863,3 +864,11 @@ void __init init_IRQ(void)
init_arch_irq(); init_arch_irq();
init_dma(); init_dma();
} }
static int __init noirqdebug_setup(char *str)
{
noirqdebug = 1;
return 1;
}
__setup("noirqdebug", noirqdebug_setup);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment