diff mbox

[Xen-devel,v2,2/2] xen/arm: call vcpu_yield on WFE trap

Message ID 1406122643-12028-2-git-send-email-stefano.stabellini@eu.citrix.com
State Accepted
Commit 77038d0f76bccb0c75de92b2f24269300df15a44
Headers show

Commit Message

Stefano Stabellini July 23, 2014, 1:37 p.m. UTC
No need to call vcpu_force_reschedule, is too expensive.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 xen/arch/arm/traps.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
index 3dfabd0..76a9586 100644
--- a/xen/arch/arm/traps.c
+++ b/xen/arch/arm/traps.c
@@ -1805,7 +1805,7 @@  asmlinkage void do_trap_hypervisor(struct cpu_user_regs *regs)
         }
         if ( hsr.wfi_wfe.ti ) {
             /* Yield the VCPU for WFE */
-            vcpu_force_reschedule(current);
+            vcpu_yield();
         } else {
             /* Block the VCPU for WFI */
             vcpu_block_unless_event_pending(current);