Skip to contentSkip to conversation

um: Fix broken IRQs if SPARSE_IRQ is selected

PATCH New Sinan Nalkaya 1 participant 1 message Feb 6, 2013 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 um: Fix broken IRQs if SPARSE_IRQ is selected

um: Kconfig.common: enabled SPARSE_IRQ.
um: kernel/irq: arch_probe_nr_irqs is implemented to prevent use of the default.

---
 arch/um/Kconfig.common |    1 +
 arch/um/kernel/irq.c   |    7 +++++++
 2 files changed, 8 insertions(+)
arch/um/Kconfig.common +1 -0
index 648121b..8335fdd 100644
@@ -12,6 +12,7 @@ config UML
 	select GENERIC_CPU_DEVICES
 	select GENERIC_IO
 	select GENERIC_CLOCKEVENTS
+	select SPARSE_IRQ
 
 config MMU
 	bool
arch/um/kernel/irq.c +7 -0
index 36e12f0..93615f0 100644
@@ -356,6 +356,13 @@ void __init init_IRQ(void)
 		irq_set_chip_and_handler(i, &normal_irq_type, handle_edge_irq);
 }
 
+#ifdef CONFIG_SPARSE_IRQ
+int __init arch_probe_nr_irqs(void)
+{
+	return NR_IRQS;
+}
+#endif
+
 /*
  * IRQ stack entry and exit:
  *
Signature · 12 lines
1.7.10.4


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel