Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234736
b: refs/heads/master
c: 6d2cd17
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 19, 2011
1 parent 6f652f2 commit 503c947
Show file tree
Hide file tree
Showing 5 changed files with 8 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: c531e8361f1968d664e6e97fbd3bfa4cf0e62e42
refs/heads/master: 6d2cd17fde1fc3e93302815f049f255bb2b3123e
2 changes: 2 additions & 0 deletions trunk/kernel/irq/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ enum {
* IRQS_PENDING - irq is pending and replayed later
* IRQS_MASKED - irq is masked
* IRQS_SUSPENDED - irq is suspended
* IRQS_WAKEUP - irq triggers system wakeup from suspend
*/
enum {
IRQS_AUTODETECT = 0x00000001,
Expand All @@ -62,6 +63,7 @@ enum {
IRQS_PENDING = 0x00000200,
IRQS_MASKED = 0x00000400,
IRQS_SUSPENDED = 0x00000800,
IRQS_WAKEUP = 0x00001000,
};

#define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data)
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ int irq_set_irq_wake(unsigned int irq, unsigned int on)
if (ret)
desc->wake_depth = 0;
else
desc->status |= IRQ_WAKEUP;
desc->istate |= IRQS_WAKEUP;
}
} else {
if (desc->wake_depth == 0) {
Expand All @@ -499,7 +499,7 @@ int irq_set_irq_wake(unsigned int irq, unsigned int on)
if (ret)
desc->wake_depth = 1;
else
desc->status &= ~IRQ_WAKEUP;
desc->istate &= ~IRQS_WAKEUP;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/irq/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int check_wakeup_irqs(void)
int irq;

for_each_irq_desc(irq, desc)
if ((desc->status & IRQ_WAKEUP) &&
if ((desc->istate & IRQS_WAKEUP) &&
(desc->istate & IRQS_PENDING))
return -EBUSY;

Expand Down
2 changes: 2 additions & 0 deletions trunk/kernel/irq/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ enum {
#define IRQ_PENDING GOT_YOU_MORON
#undef IRQ_MASKED
#define IRQ_MASKED GOT_YOU_MORON
#undef IRQ_WAKEUP
#define IRQ_WAKEUP GOT_YOU_MORON

0 comments on commit 503c947

Please sign in to comment.