xen/x86: actually allocate legacy interrupts on PV guests
authorStefano Stabellini <sstabellini@kernel.org>
Wed, 20 Apr 2016 13:15:01 +0000 (14:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 19:17:01 +0000 (12:17 -0700)
commitf21a3ff053d11bd9442b6ae7f51503bc5b373feb
tree5d3a757d1781acbec66ae9b2c7631054d3ceafee
parentcaa2ca520f0d0cb963f5d0a18cbcd7cdfd1f1b0d
xen/x86: actually allocate legacy interrupts on PV guests

commit 702f926067d2a4b28c10a3c41a1172dd62d9e735 upstream.

b4ff8389ed14 is incomplete: relies on nr_legacy_irqs() to get the number
of legacy interrupts when actually nr_legacy_irqs() returns 0 after
probe_8259A(). Use NR_IRQS_LEGACY instead.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/pci/xen.c