Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116520
b: refs/heads/master
c: e00585b
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 16, 2008
1 parent 1f4e937 commit 25e2183
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 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: 56ffa1a028b9fce3860a247c6fe79fce7cbf425b
refs/heads/master: e00585bb7fc3d0b601181b765a254df7ff4ea59b
17 changes: 11 additions & 6 deletions trunk/kernel/irq/spurious.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,15 @@ static int misrouted_irq(int irq)
{
int i;
int ok = 0;
struct irq_desc *desc;

for (i = 1; i < nr_irqs; i++) {
struct irq_desc *desc;
for_each_irq_desc(i, desc) {
if (!i)
continue;

if (i == irq) /* Already tried */
continue;

desc = irq_to_desc(i);
if (try_one_irq(i, desc))
ok = 1;
}
Expand All @@ -108,10 +109,14 @@ static int misrouted_irq(int irq)
static void poll_spurious_irqs(unsigned long dummy)
{
int i;
for (i = 1; i < nr_irqs; i++) {
struct irq_desc *desc = irq_to_desc(i);
struct irq_desc *desc;

for_each_irq_desc(i, desc) {
unsigned int status;

if (!i)
continue;

/* Racy but it doesn't matter */
status = desc->status;
barrier();
Expand Down Expand Up @@ -278,7 +283,7 @@ static int __init irqfixup_setup(char *str)

__setup("irqfixup", irqfixup_setup);
module_param(irqfixup, int, 0644);
MODULE_PARM_DESC("irqfixup", "0: No fixup, 1: irqfixup mode 2: irqpoll mode");
MODULE_PARM_DESC("irqfixup", "0: No fixup, 1: irqfixup mode, 2: irqpoll mode");

static int __init irqpoll_setup(char *str)
{
Expand Down

0 comments on commit 25e2183

Please sign in to comment.