Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31053
b: refs/heads/master
c: 74ffd55
h: refs/heads/master
i:
  31051: 279beb2
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jun 29, 2006
1 parent 4b6983e commit ae1b214
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: d1bef4ed5faf7d9872337b33c4269e45ae1bf960
refs/heads/master: 74ffd553a3a7fbae34be70b751852d5b6fe5acac
9 changes: 5 additions & 4 deletions trunk/kernel/irq/autoprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* comes in on to an unassigned handler will get stuck with
* "IRQ_WAITING" cleared and the interrupt disabled.
*/
static DECLARE_MUTEX(probe_sem);
static DEFINE_MUTEX(probing_active);

/**
* probe_irq_on - begin an interrupt autodetect
Expand All @@ -31,7 +31,7 @@ unsigned long probe_irq_on(void)
irq_desc_t *desc;
unsigned int i;

down(&probe_sem);
mutex_lock(&probing_active);
/*
* something may have generated an irq long ago and we want to
* flush such a longstanding irq before considering it as spurious.
Expand Down Expand Up @@ -132,7 +132,7 @@ unsigned int probe_irq_mask(unsigned long val)
}
spin_unlock_irq(&desc->lock);
}
up(&probe_sem);
mutex_unlock(&probing_active);

return mask & val;
}
Expand Down Expand Up @@ -177,10 +177,11 @@ int probe_irq_off(unsigned long val)
}
spin_unlock_irq(&desc->lock);
}
up(&probe_sem);
mutex_unlock(&probing_active);

if (nr_irqs > 1)
irq_found = -irq_found;

return irq_found;
}

Expand Down

0 comments on commit ae1b214

Please sign in to comment.