Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243348
b: refs/heads/master
c: a821b27
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Mar 29, 2011
1 parent fbd09ec commit bac25ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 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: 433c9c67c53cc42b2824532d3abb7ac62970d3fb
refs/heads/master: a821b2793ea958038687c481c1ea7f74c8fcccfd
3 changes: 1 addition & 2 deletions trunk/arch/sh/boards/mach-se/7206/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ static void eoi_se7206_irq(struct irq_data *data)
{
unsigned short sts0,sts1;
unsigned int irq = data->irq;
struct irq_desc *desc = irq_to_desc(irq);

if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
if (!irqd_irq_disabled(data) && !irqd_irq_inprogress(data))
enable_se7206_irq(data);
/* FPGA isr clear */
sts0 = __raw_readw(INTSTS0);
Expand Down
9 changes: 2 additions & 7 deletions trunk/drivers/sh/intc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,19 +387,16 @@ static int intc_suspend(void)
/* enable wakeup irqs belonging to this intc controller */
for_each_active_irq(irq) {
struct irq_data *data;
struct irq_desc *desc;
struct irq_chip *chip;

data = irq_get_irq_data(irq);
chip = irq_data_get_irq_chip(data);
if (chip != &d->chip)
continue;
desc = irq_to_desc(irq);
if ((desc->status & IRQ_WAKEUP))
if (irqd_is_wakeup_set(data))
chip->irq_enable(data);
}
}

return 0;
}

Expand All @@ -412,7 +409,6 @@ static void intc_resume(void)

for_each_active_irq(irq) {
struct irq_data *data;
struct irq_desc *desc;
struct irq_chip *chip;

data = irq_get_irq_data(irq);
Expand All @@ -423,8 +419,7 @@ static void intc_resume(void)
*/
if (chip != &d->chip)
continue;
desc = irq_to_desc(irq);
if (desc->status & IRQ_DISABLED)
if (irqd_irq_disabled(data))
chip->irq_disable(data);
else
chip->irq_enable(data);
Expand Down

0 comments on commit bac25ec

Please sign in to comment.