From: Stefano Stabellini Date: Wed, 23 Jul 2014 13:37:23 +0000 (+0100) Subject: xen/arm: call vcpu_yield on WFE trap X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4589 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=77038d0f76bccb0c75de92b2f24269300df15a44;p=xen.git xen/arm: call vcpu_yield on WFE trap No need to call vcpu_force_reschedule, is too expensive. Signed-off-by: Stefano Stabellini Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 3dfabd066f..76a9586aa2 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);