x86: fix probe_nr_irqs for xen
authorYinghai Lu <yhlu.kernel@gmail.com>
Thu, 21 Aug 2008 20:10:09 +0000 (13:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:52:59 +0000 (16:52 +0200)
commit052c0bff9b83a578654dfa513d6e3d0b3795f1e8
tree4e5928ce37fa1567301e2316d0036b322e15362d
parenta2d332fa3445160519de03c350a59602ac1c3df9
x86: fix probe_nr_irqs for xen

otherwise Xen is _completely_ unusable with 5 or more VCPUs.
(when !CONFIG_HAVE_SPARSE_IRQ).

based on Alex Nixon's patch.

also add +1 offset after redir_entries

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Alex Nixon <alex.nixon@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/io_apic.c