x86/io_apic: add get_nr_irqs_gsi()
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 13 Feb 2009 01:22:49 +0000 (17:22 -0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Oct 2010 14:40:30 +0000 (10:40 -0400)
commit7b586d71858091f0958e5808b7e3d5390c2ae47d
tree6184c500731aad975103d8c87c5ee9ed18977040
parentd46a78b05c0e37f76ddf4a7a67bf0b6c68bada55
x86/io_apic: add get_nr_irqs_gsi()

Impact: new interface to get max GSI

Add get_nr_irqs_gsi() to return nr_irqs_gsi.  Xen will use this to
determine how many irqs it needs to reserve for hardware irqs.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: "H. Peter Anvin" <hpa@zytor.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: x86@kernel.org
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/include/asm/io_apic.h
arch/x86/kernel/apic/io_apic.c