|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 05/10] x86/io_apic: add get_nr_irqs_gsi()
From: Jeremy Fitzhardinge <jeremy@f9-builder.(none)>
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@xxxxxxxxxx>
---
arch/x86/include/asm/io_apic.h | 1 +
arch/x86/kernel/io_apic.c | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/io_apic.h b/arch/x86/include/asm/io_apic.h
index 685f21b..b82ca76 100644
--- a/arch/x86/include/asm/io_apic.h
+++ b/arch/x86/include/asm/io_apic.h
@@ -168,6 +168,7 @@ extern void reinit_intr_remapped_IO_APIC(int);
#endif
extern void probe_nr_irqs_gsi(void);
+extern int get_nr_irqs_gsi(void);
#else /* !CONFIG_X86_IO_APIC */
#define io_apic_assign_pci_irqs 0
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 6366384..b93a919 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -3865,6 +3865,11 @@ void __init probe_nr_irqs_gsi(void)
printk(KERN_DEBUG "nr_irqs_gsi: %d\n", nr_irqs_gsi);
}
+int get_nr_irqs_gsi(void)
+{
+ return nr_irqs_gsi;
+}
+
#ifdef CONFIG_SPARSE_IRQ
int __init arch_probe_nr_irqs(void)
{
--
1.6.0.6
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] xen: dom0 apic programming hooks, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 03/10] xen: create dummy ioapic mapping, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 01/10] xen/dom0: handle acpi lapic parsing in Xen dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 05/10] x86/io_apic: add get_nr_irqs_gsi(),
Jeremy Fitzhardinge <=
- [Xen-devel] [PATCH 02/10] xen: hook io_apic read/write operations, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 06/10] xen/apic: identity map gsi->irqs, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10/10] xen/apic: program the apic triggering and polarity properly, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 09/10] xen: pre-initialize legacy irqs early, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 04/10] xen: implement pirq type event channels, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 08/10] xen: bind pirq to vector and event channel, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07/10] xen: direct irq registration to pirq event channels, Jeremy Fitzhardinge
|
|
|
|
|