Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212148
b: refs/heads/master
c: 0c5c155
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Oct 4, 2010
1 parent 62a1cf7 commit b787f47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: 9205e31d1af0f725e71bbae10d199c6b9e8d6dd8
refs/heads/master: 0c5c15572ac096001f52d37b416f2a4be9aebb80
13 changes: 10 additions & 3 deletions trunk/kernel/irq/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ static void compat_irq_mask_ack(struct irq_data *data)
data->chip->mask_ack(data->irq);
}

static void compat_irq_eoi(struct irq_data *data)
{
data->chip->eoi(data->irq);
}

static void compat_bus_lock(struct irq_data *data)
{
data->chip->bus_lock(data->irq);
Expand Down Expand Up @@ -390,6 +395,8 @@ void irq_chip_set_defaults(struct irq_chip *chip)
chip->irq_ack = compat_irq_ack;
if (chip->mask_ack)
chip->irq_mask_ack = compat_irq_mask_ack;
if (chip->eoi)
chip->irq_eoi = compat_irq_eoi;
}

static inline void mask_ack_irq(struct irq_desc *desc)
Expand Down Expand Up @@ -596,7 +603,7 @@ handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc)
raw_spin_lock(&desc->lock);
desc->status &= ~IRQ_INPROGRESS;
out:
desc->irq_data.chip->eoi(irq);
desc->irq_data.chip->irq_eoi(&desc->irq_data);

raw_spin_unlock(&desc->lock);
}
Expand Down Expand Up @@ -698,8 +705,8 @@ handle_percpu_irq(unsigned int irq, struct irq_desc *desc)
if (!noirqdebug)
note_interrupt(irq, desc, action_ret);

if (desc->irq_data.chip->eoi)
desc->irq_data.chip->eoi(irq);
if (desc->irq_data.chip->irq_eoi)
desc->irq_data.chip->irq_eoi(&desc->irq_data);
}

void
Expand Down

0 comments on commit b787f47

Please sign in to comment.