From patchwork Wed Jul 23 12:05:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 34152 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DD2682061E for ; Wed, 23 Jul 2014 12:07:39 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id hu12sf3411749vcb.1 for ; Wed, 23 Jul 2014 05:07:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=lJs/q6IlFGzl7ThDhqgCzVR/1/g/EjOnKlk16j8/7C0=; b=Q3Ect5dBHkmNYgKIfYzPCh8x9Z75kfcyLB0eL+WyLpEA/nhrwfY4+8l3uCsd74YHmx 23fVtxXUHCYlUtMJCdOeK7aoe+5FdGj0yv8Z50T/mpwo5F6h83/aXzWiqdKGM2bH9u+t Vv+7Tr8JeoM6H0fvwC/ypDlAt0HsilFfww1/+rE3FjkTsuMiynommhedJfxo3KP6d/K2 AGPtW9qWGNd1bAhNsaJetpxLR5quzIJ4f4DMMKkn9rqpA+SevkenRXGPvJzGVVTi6K6Y MEqBjuP6GLELgVZoOHA7vBpgWLF4WqFttNY1JO1cu+flA3vljHVWj0c++4CDnUaoCmG5 h3xg== X-Gm-Message-State: ALoCoQnOqj7wI9bpw16CxXO/O4WCI537HA865ZU04dIVGG3dSdXn4BCrM9KTnNPyg/CUrs1Q2IOC X-Received: by 10.236.101.148 with SMTP id b20mr317309yhg.46.1406117259456; Wed, 23 Jul 2014 05:07:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.44 with SMTP id k41ls294273qgk.78.gmail; Wed, 23 Jul 2014 05:07:39 -0700 (PDT) X-Received: by 10.53.10.65 with SMTP id dy1mr1131488vdd.92.1406117259335; Wed, 23 Jul 2014 05:07:39 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id t10si1663308vdf.82.2014.07.23.05.07.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jul 2014 05:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so1900713vcb.23 for ; Wed, 23 Jul 2014 05:07:39 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr1326395vdc.8.1406117259218; Wed, 23 Jul 2014 05:07:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp273341vcb; Wed, 23 Jul 2014 05:07:38 -0700 (PDT) X-Received: by 10.42.23.16 with SMTP id q16mr2794332icb.0.1406117256727; Wed, 23 Jul 2014 05:07:36 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id ro2si45574989igb.54.2014.07.23.05.07.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Jul 2014 05:07:36 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X9vJ9-00054P-TH; Wed, 23 Jul 2014 12:06:07 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X9vJ8-000542-JO for xen-devel@lists.xenproject.org; Wed, 23 Jul 2014 12:06:06 +0000 Received: from [85.158.143.35:11008] by server-1.bemta-4.messagelabs.com id 31/2E-05872-D25AFC35; Wed, 23 Jul 2014 12:06:05 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-15.tower-21.messagelabs.com!1406117164!19585335!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3667 invoked from network); 23 Jul 2014 12:06:05 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-15.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 23 Jul 2014 12:06:05 -0000 X-IronPort-AV: E=Sophos;i="5.01,717,1400025600"; d="scan'208";a="154882255" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 23 Jul 2014 12:06:04 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.3.181.6; Wed, 23 Jul 2014 08:06:03 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1X9vJ5-0002de-DN; Wed, 23 Jul 2014 13:06:03 +0100 From: Stefano Stabellini To: Date: Wed, 23 Jul 2014 13:05:03 +0100 Message-ID: <1406117103-10584-2-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-DLP: MIA1 Cc: pranavkumar@linaro.org, julien.grall@linaro.org, Ian.Campbell@citrix.com, anup.patel@linaro.org, stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH 2/2] xen/arm: call vcpu_yield on WFE trap X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: No need to call vcpu_force_reschedule, is too expensive. Signed-off-by: Stefano Stabellini --- xen/arch/arm/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 3dfabd0..8cd06cc 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(current); } else { /* Block the VCPU for WFI */ vcpu_block_unless_event_pending(current);