xen/arm: call vcpu_yield on WFE trap
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 23 Jul 2014 13:37:23 +0000 (14:37 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 28 Jul 2014 12:44:18 +0000 (13:44 +0100)
No need to call vcpu_force_reschedule, is too expensive.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/traps.c

index 3dfabd066f115d00d2a379781adb2174e6c20051..76a9586aa2d1523c85c74bfa6ffeffce2c2b116f 100644 (file)
@@ -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);