WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] x86: delete not really used ioapic_renumber_irq vari

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] x86: delete not really used ioapic_renumber_irq variable
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Fri, 22 Oct 2010 14:28:05 +0100
Delivery-date: Fri, 22 Oct 2010 06:28:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -38,7 +38,6 @@
 #include <io_ports.h>
 #include <public/physdev.h>
 
-int (*ioapic_renumber_irq)(int ioapic, int irq);
 atomic_t irq_mis_count;
 
 /* Where if anywhere is the i8259 connect in external int mode */
@@ -877,13 +876,6 @@ static int pin_2_irq(int idx, int apic, 
         while (i < apic)
             irq += nr_ioapic_registers[i++];
         irq += pin;
-
-        /*
-         * For MPS mode, so far only needed by ES7000 platform
-         */
-        if (ioapic_renumber_irq)
-            irq = ioapic_renumber_irq(apic, irq);
-
         break;
     }
     default:
--- a/xen/arch/x86/mpparse.c
+++ b/xen/arch/x86/mpparse.c
@@ -1116,9 +1116,6 @@ int mp_register_gsi (u32 gsi, int trigge
 
        ioapic_pin = gsi - mp_ioapic_routing[ioapic].gsi_base;
 
-       if (ioapic_renumber_irq)
-               gsi = ioapic_renumber_irq(ioapic, gsi);
-
        desc = irq_to_desc(gsi);
        spin_lock_irqsave(&desc->lock, flags);
        if (!(desc->status & IRQ_DISABLED) && desc->handler != &no_irq_type) {
--- a/xen/include/asm-x86/io_apic.h
+++ b/xen/include/asm-x86/io_apic.h
@@ -195,7 +195,6 @@ extern int timer_uses_ioapic_pin_0;
 
 extern void init_ioapic_mappings(void);
 
-extern int (*ioapic_renumber_irq)(int ioapic, int irq);
 extern void ioapic_suspend(void);
 extern void ioapic_resume(void);
 



Attachment: x86-ioapic-renumber-irq.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] x86: delete not really used ioapic_renumber_irq variable, Jan Beulich <=