]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sparseirq: fix hang with !SPARSE_IRQ
authorYinghai Lu <yinghai@kernel.org>
Sat, 27 Dec 2008 06:38:15 +0000 (22:38 -0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 27 Dec 2008 16:52:07 +0000 (17:52 +0100)
Impact: fix hang

Suresh report his two sockets system only works with SPARSE_IRQ enable
it turns out we miss the setting desc->irq

so provide early_irq_init() even !SPARSE_IRQ to set desc->irq

Reported-by: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/handle.c

index e1cf4e391caee0a8fbeb4bc259a16cb203abc876..157c04c3b158ccdb3a3d09728872aac0d065cbef 100644 (file)
@@ -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;