]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
x86: some assorted irq related cleanups
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 20 May 2009 14:30:36 +0000 (15:30 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 20 May 2009 14:30:36 +0000 (15:30 +0100)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/io_apic.c
xen/arch/x86/irq.c
xen/drivers/passthrough/amd/iommu_intr.c
xen/include/asm-x86/io_apic.h
xen/include/asm-x86/irq.h
xen/include/asm-x86/mach-default/smpboot_hooks.h

index f99907439e8db0f7b0c0abfe1f7c9aaec7280054..fe281d4c4ea53ee2dd54c9e7864553d22a616604 100644 (file)
@@ -1781,7 +1781,7 @@ static inline void check_timer(void)
 
 static struct IO_APIC_route_entry *ioapic_pm_state;
 
-void ioapic_pm_state_alloc(void)
+static void __init ioapic_pm_state_alloc(void)
 {
     int i, nr_entry = 0;
 
index 57b3c59a20f7043819d2f049b4f3a1c25d3e4c33..e4f641f86e332d40d592391000e3e84bfcde573e 100644 (file)
@@ -844,7 +844,7 @@ void pirq_guest_unbind(struct domain *d, int irq)
         xfree(oldaction);
 }
 
-int pirq_guest_force_unbind(struct domain *d, int irq)
+static int pirq_guest_force_unbind(struct domain *d, int irq)
 {
     irq_desc_t *desc;
     irq_guest_action_t *action, *oldaction = NULL;
index 4774431204bb5dcd8e2e9b1fff58775d563a3a3a..5ca5f16eaf0215aec91928d858c890a65792a032 100644 (file)
@@ -108,9 +108,6 @@ static void update_intremap_entry_from_ioapic(
     return;
 }
 
-extern int nr_ioapic_registers[MAX_IO_APICS];
-extern int nr_ioapics;
-
 int __init amd_iommu_setup_intremap_table(void)
 {
     struct IO_APIC_route_entry rte = {0};
index eaa77a8d7901acbeb011e03b3025936970989f2d..af34aff979acb0296a209f53e919afac01dd1ded 100644 (file)
@@ -167,12 +167,6 @@ static inline void io_apic_modify(unsigned int apic, unsigned int reg, unsigned
 /* 1 if "noapic" boot option passed */
 extern int skip_ioapic_setup;
 
-/*
- * If we use the IO-APIC for IRQ routing, disable automatic
- * assignment of PCI IRQ's.
- */
-#define io_apic_assign_pci_irqs (mp_irq_entries && !skip_ioapic_setup && io_apic_irqs)
-
 #ifdef CONFIG_ACPI_BOOT
 extern int io_apic_get_unique_id (int ioapic, int apic_id);
 extern int io_apic_get_version (int ioapic);
@@ -186,7 +180,6 @@ extern void ioapic_suspend(void);
 extern void ioapic_resume(void);
 
 #else  /* !CONFIG_X86_IO_APIC */
-#define io_apic_assign_pci_irqs 0
 static inline void ioapic_suspend(void) {}
 static inline void ioapic_resume(void) {}
 #endif
index 108b065d17262782f440f821d7504d69d6064f0a..c57803d4a33bbe36a796c1244c0bfa2a8e395811 100644 (file)
@@ -64,6 +64,4 @@ void free_domain_pirqs(struct domain *d);
                                        (vec) > LAST_LEGACY_VECTOR) ? \
                                       0 : LEGACY_IRQ_FROM_VECTOR(vec))
 
-int pirq_guest_force_unbind(struct domain *d, int irq);
-
 #endif /* _ASM_HW_IRQ_H */
index 48e589e018fb1d183b5c570375884fe251b78d68..a70d279912cf28d1f249246ec0b2c255be4946f9 100644 (file)
@@ -1,11 +1,6 @@
 /* two abstractions specific to kernel/smpboot.c, mainly to cater to visws
  * which needs to alter them. */
 
-static inline void smpboot_clear_io_apic_irqs(void)
-{
-       io_apic_irqs = 0;
-}
-
 static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip)
 {
        CMOS_WRITE(0xa, 0xf);