Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124977
b: refs/heads/master
c: 12026ea
h: refs/heads/master
i:
  124975: 08926d4
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Dec 27, 2008
1 parent b2506fa commit d11089e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa6beb37b0d9bc00f90f11154eeed9502d8b0a37
refs/heads/master: 12026ea16a618b289fcf457661aed24f57323a20
15 changes: 15 additions & 0 deletions trunk/kernel/irq/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,21 @@ struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned_in_smp = {
}
};

int __init early_irq_init(void)
{
struct irq_desc *desc;
int count;
int i;

desc = irq_desc;
count = ARRAY_SIZE(irq_desc);

for (i = 0; i < count; i++)
desc[i].irq = i;

return arch_early_irq_init();
}

struct irq_desc *irq_to_desc(unsigned int irq)
{
return (irq < NR_IRQS) ? irq_desc + irq : NULL;
Expand Down

0 comments on commit d11089e

Please sign in to comment.