Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135765
b: refs/heads/master
c: 74296a8
h: refs/heads/master
i:
  135763: 7828161
v: v3
  • Loading branch information
Ingo Molnar committed Jan 16, 2009
1 parent ce4e43b commit 90a07d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a2dd72abdae75ea2960145e0549635ce4e0be96
refs/heads/master: 74296a8ed6aa3c5bf672808ada690de7ba323ecc
6 changes: 6 additions & 0 deletions trunk/include/linux/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,12 @@ static inline void init_irq_proc(void)
}
#endif

#if defined(CONFIG_GENERIC_HARDIRQS) && defined(CONFIG_DEBUG_SHIRQ)
extern void debug_poll_all_shared_irqs(void);
#else
static inline void debug_poll_all_shared_irqs(void) { }
#endif

int show_interrupts(struct seq_file *p, void *v);

struct irq_desc;
Expand Down
14 changes: 13 additions & 1 deletion trunk/kernel/irq/spurious.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static int misrouted_irq(int irq)
return ok;
}

static void poll_spurious_irqs(unsigned long dummy)
static void poll_all_shared_irqs(void)
{
struct irq_desc *desc;
int i;
Expand All @@ -123,11 +123,23 @@ static void poll_spurious_irqs(unsigned long dummy)

try_one_irq(i, desc);
}
}

static void poll_spurious_irqs(unsigned long dummy)
{
poll_all_shared_irqs();

mod_timer(&poll_spurious_irq_timer,
jiffies + POLL_SPURIOUS_IRQ_INTERVAL);
}

#ifdef CONFIG_DEBUG_SHIRQ
void debug_poll_all_shared_irqs(void)
{
poll_all_shared_irqs();
}
#endif

/*
* If 99,900 of the previous 100,000 interrupts have not been handled
* then assume that the IRQ is stuck in some manner. Drop a diagnostic
Expand Down

0 comments on commit 90a07d6

Please sign in to comment.