summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2008-12-27 07:38:15 +0100
committerIngo Molnar <mingo@elte.hu>2008-12-27 17:52:07 +0100
commit12026ea16a618b289fcf457661aed24f57323a20 (patch)
tree69375cb891e5d9593fc7bc9fdd87be952e4325e7
parentsparseirq: set lock_class for legacy irq when sparse_irq is selected (diff)
downloadlinux-12026ea16a618b289fcf457661aed24f57323a20.tar.xz
linux-12026ea16a618b289fcf457661aed24f57323a20.zip
sparseirq: fix hang with !SPARSE_IRQ
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>
-rw-r--r--kernel/irq/handle.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index e1cf4e391cae..157c04c3b158 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -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;