Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153724
b: refs/heads/master
c: 3f1a567
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks committed Jun 16, 2009
1 parent 94527e0 commit a24c6e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: f25f0b9ca48848632f19e6616bd01550e3c0fc0e
refs/heads/master: 3f1a567d8a4ed7a5d105bd049343606f5273b603
8 changes: 6 additions & 2 deletions trunk/arch/arm/common/vic.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,18 @@ static int vic_set_wake(unsigned int irq, unsigned int on)
{
struct vic_device *v = vic_from_irq(irq);
unsigned int off = irq & 31;
u32 bit = 1 << off;

if (!v)
return -EINVAL;

if (!(bit & v->resume_sources))
return -EINVAL;

if (on)
v->resume_irqs |= 1 << off;
v->resume_irqs |= bit;
else
v->resume_irqs &= ~(1 << off);
v->resume_irqs &= ~bit;

return 0;
}
Expand Down

0 comments on commit a24c6e5

Please sign in to comment.