Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135783
b: refs/heads/master
c: 8316e38
h: refs/heads/master
i:
  135781: 3821e81
  135779: 681438f
  135775: b2f9efc
v: v3
  • Loading branch information
Ingo Molnar committed Feb 17, 2009
1 parent 033fd6e commit e067593
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: ae88a23b32fa7e0dc9fa7ce735966e68eb41b0bc
refs/heads/master: 8316e38100c70cd1443ac90074eccdd033aa218d
11 changes: 4 additions & 7 deletions trunk/kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ int setup_irq(unsigned int irq, struct irqaction *act)
void free_irq(unsigned int irq, void *dev_id)
{
struct irq_desc *desc = irq_to_desc(irq);
struct irqaction *action, **p, **pp;
struct irqaction *action, **p;
unsigned long flags;

WARN(in_interrupt(), "Trying to free IRQ %d from IRQ context!\n", irq);
Expand All @@ -592,7 +592,6 @@ void free_irq(unsigned int irq, void *dev_id)
p = &desc->action;
for (;;) {
action = *p;
pp = p;

if (!action) {
WARN(1, "Trying to free already-free IRQ %d\n", irq);
Expand All @@ -601,15 +600,13 @@ void free_irq(unsigned int irq, void *dev_id)
return;
}

if (action->dev_id == dev_id)
break;
p = &action->next;
if (action->dev_id != dev_id)
continue;

break;
}

/* Found it - now remove it from the list of entries: */
*pp = action->next;
*p = action->next;

/* Currently used only by UML, might disappear one day: */
#ifdef CONFIG_IRQ_RELEASE_METHOD
Expand Down

0 comments on commit e067593

Please sign in to comment.