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

[Xen-changelog] [xen-unstable] [IA64] eliminate redundant wakeup logic



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 3ef3ac573a9a81e38bd96b653501c138e83d2b19
# Parent  30b1325e64527c9bb1d3604d898365f781717e9d
[IA64] eliminate redundant wakeup logic

Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx>
---
 xen/arch/ia64/vmx/vlsapic.c         |   11 -----------
 xen/include/asm-ia64/vmx_platform.h |    4 ++--
 2 files changed, 2 insertions(+), 13 deletions(-)

diff -r 30b1325e6452 -r 3ef3ac573a9a xen/arch/ia64/vmx/vlsapic.c
--- a/xen/arch/ia64/vmx/vlsapic.c       Mon Nov 20 09:39:46 2006 -0700
+++ b/xen/arch/ia64/vmx/vlsapic.c       Mon Nov 20 10:06:18 2006 -0700
@@ -677,14 +677,3 @@ void vmx_vioapic_set_irq(struct domain *
     spin_unlock_irqrestore(&d->arch.arch_vmx.virq_assist_lock, flags);
 }
 
-int vmx_vlapic_set_irq(VCPU *v, uint8_t vec, uint8_t trig)
-{
-    int ret;
-    int running = test_bit(_VCPUF_running, &v->vcpu_flags);
-
-    ret = vmx_vcpu_pend_interrupt(v, vec);
-    vcpu_unblock(v);
-    if (running)
-        smp_send_event_check_cpu(v->processor);
-    return ret;
-}
diff -r 30b1325e6452 -r 3ef3ac573a9a xen/include/asm-ia64/vmx_platform.h
--- a/xen/include/asm-ia64/vmx_platform.h       Mon Nov 20 09:39:46 2006 -0700
+++ b/xen/include/asm-ia64/vmx_platform.h       Mon Nov 20 10:06:18 2006 -0700
@@ -56,10 +56,10 @@ extern uint64_t dummy_tmr[];
 #define VLAPIC_ID(l) (uint16_t)(((l)->vcpu->arch.privregs->lid) >> 16)
 #define VLAPIC_IRR(l) ((l)->vcpu->arch.privregs->irr[0])
 struct vlapic *apic_round_robin(struct domain *d, uint8_t vector, uint32_t 
bitmap);
-extern int vmx_vlapic_set_irq(struct vcpu *v, uint8_t vec, uint8_t trig);
+extern int vmx_vcpu_pend_interrupt(struct vcpu *vcpu, uint8_t vector);
 static inline int vlapic_set_irq(struct vlapic *t, uint8_t vec, uint8_t trig)
 {
-    return vmx_vlapic_set_irq(t->vcpu, vec, trig);
+    return vmx_vcpu_pend_interrupt(t->vcpu, vec);
 }
 
 enum ioapic_irq_destination_types {

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