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 <sar...@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