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

[Xen-changelog] [xen-unstable] x86: Remove the redundant logic in set_msi_affinity



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1251888004 -3600
# Node ID afbeaea4ada1b076723d78266fad78bdef4ae992
# Parent  2375b4ac35bdef836a6fe8bbb6547764216be7bc
x86: Remove the redundant logic in set_msi_affinity

Remove the redundant logic in set_msi_affinity. And it is introduced
accidently, maybe something wrong when I generated the patch.

Signed-off-by: Xiantao Zhang <xiantao.zhang@xxxxxxxxx>
---
 xen/arch/x86/msi.c |   14 --------------
 1 files changed, 14 deletions(-)

diff -r 2375b4ac35bd -r afbeaea4ada1 xen/arch/x86/msi.c
--- a/xen/arch/x86/msi.c        Wed Sep 02 11:39:27 2009 +0100
+++ b/xen/arch/x86/msi.c        Wed Sep 02 11:40:04 2009 +0100
@@ -281,20 +281,6 @@ void set_msi_affinity(unsigned int irq, 
 
     msg.data &= ~MSI_DATA_VECTOR_MASK;
     msg.data |= MSI_DATA_VECTOR(cfg->vector);
-    cpus_and(mask, mask, cpu_online_map);
-    if ( cpus_empty(mask) )
-        mask = TARGET_CPUS;
-    dest = cpu_mask_to_apicid(mask);
-
-    if ( !desc )
-        return;
-
-    ASSERT(spin_is_locked(&desc->lock));
-    read_msi_msg(msi_desc, &msg);
-
-    msg.data &= ~MSI_DATA_VECTOR_MASK;
-    msg.data |= MSI_DATA_VECTOR(cfg->vector);
-
     msg.address_lo &= ~MSI_ADDR_DEST_ID_MASK;
     msg.address_lo |= MSI_ADDR_DEST_ID(dest);
 

_______________________________________________
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®.