linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 1/1] um: Fix broken IRQs if SPARSE_IRQ is selected
@ 2013-02-06 23:39 Sinan Nalkaya
  0 siblings, 0 replies; only message in thread
From: Sinan Nalkaya @ 2013-02-06 23:39 UTC (permalink / raw)
  To: Richard Weinberger; +Cc: user-mode-linux-devel, Sinan Nalkaya

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

Signed-off-by: Sinan Nalkaya <sardok@gmail.com>
---
 arch/um/Kconfig.common |    1 +
 arch/um/kernel/irq.c   |    7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common
index 648121b..8335fdd 100644
--- a/arch/um/Kconfig.common
+++ b/arch/um/Kconfig.common
@@ -12,6 +12,7 @@ config UML
 	select GENERIC_CPU_DEVICES
 	select GENERIC_IO
 	select GENERIC_CLOCKEVENTS
+	select SPARSE_IRQ
 
 config MMU
 	bool
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c
index 36e12f0..93615f0 100644
--- a/arch/um/kernel/irq.c
+++ b/arch/um/kernel/irq.c
@@ -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:
  *
-- 
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-06 23:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-06 23:39 [uml-devel] [PATCH 1/1] um: Fix broken IRQs if SPARSE_IRQ is selected Sinan Nalkaya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox