um: Fix broken IRQs if SPARSE_IRQ is selected
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.
Signed-off-by Sinan Nalkaya <[email protected]>
--- arch/um/Kconfig.common | 1 + arch/um/kernel/irq.c | 7 +++++++ 2 files changed, 8 insertions(+)
arch/um/Kconfig.common +1 -0
@@ -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
@@ -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