Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222960
b: refs/heads/master
c: 8750750
h: refs/heads/master
v: v3
  • Loading branch information
Chao Xie authored and Russell King committed Dec 6, 2010
1 parent f63f619 commit 629e2e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: a5542a0f9aca5588a0afd0489c26d858405bfecb
refs/heads/master: 87507500b7fc3620e467abb617a3452f0cccc72d
8 changes: 7 additions & 1 deletion trunk/arch/arm/common/gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,15 @@ static int gic_set_cpu(unsigned int irq, const struct cpumask *mask_val)
unsigned int shift = (irq % 4) * 8;
unsigned int cpu = cpumask_first(mask_val);
u32 val;
struct irq_desc *desc;

spin_lock(&irq_controller_lock);
irq_desc[irq].node = cpu;
desc = irq_to_desc(irq);
if (desc == NULL) {
spin_unlock(&irq_controller_lock);
return -EINVAL;
}
desc->node = cpu;
val = readl(reg) & ~(0xff << shift);
val |= 1 << (cpu + shift);
writel(val, reg);
Expand Down

0 comments on commit 629e2e4

Please sign in to comment.