[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] x86: Fix legacy irq allocation issue



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245753226 -3600
# Node ID e273d01fd5eb832b681b51a0f4f959038487ae24
# Parent  39876c1a8dd234dc9b59af4792d0eb5751b84eb0
x86: Fix legacy irq allocation issue

When try to assign vector for irq, we should not assign vector for
legacy irq, which has fixed mapped irq<->vector relationship.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>
xen-unstable changeset:   19803:07fea69baadc
xen-unstable date:        Fri Jun 19 08:43:58 2009 +0100

x86: Another assign_irq_vector() cleanup.

Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>
xen-unstable changeset:   19808:16c2806b09c6
xen-unstable date:        Tue Jun 23 11:11:46 2009 +0100
---
 xen/arch/x86/irq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 39876c1a8dd2 -r e273d01fd5eb xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Thu Jun 18 13:00:51 2009 +0100
+++ b/xen/arch/x86/irq.c        Tue Jun 23 11:33:46 2009 +0100
@@ -82,9 +82,9 @@ int assign_irq_vector(int irq)
 
     spin_lock(&vector_lock);
 
-    if ((irq != AUTO_ASSIGN_IRQ) && (IO_APIC_VECTOR(irq) > 0)) {
+    if ((irq != AUTO_ASSIGN_IRQ) && (irq_to_vector(irq) > 0)) {
         spin_unlock(&vector_lock);
-        return IO_APIC_VECTOR(irq);
+        return irq_to_vector(irq);
     }
 
     vector = current_vector;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.