Message ID | 1406122643-12028-2-git-send-email-stefano.stabellini@eu.citrix.com |
---|---|
State | Accepted |
Commit | 77038d0f76bccb0c75de92b2f24269300df15a44 |
Headers | show
Return-Path: <patchwork-forward+bncBDWMDO7X3ICBBQXWX2PAKGQE7VVVOMQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 20E2E2061E for <linaro@patches.linaro.org>; Wed, 23 Jul 2014 13:40:19 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id v1sf4317672yhn.4 for <linaro@patches.linaro.org>; Wed, 23 Jul 2014 06:40:18 -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=AM56/OTgAtKo4wOvg8PYQi6XcaSobbC6xY1WiBmEK8A=; b=L5z0Z5Fd7fNZ1KALgxemgkrUYUss4fl7/VFRQRrPyrz56UZy9jAwpikj8Izp2M/cZe wUpDOcBQamTnB0t4j/lGkir4GslhDx2ylRtgUU7+0fGPjZlQZAC9940d3dwUlYwgOGcr JEcXkoCBJoZBq/7DW3YOtc0Xd4OsYAvww62PC5DLQNNHSvpJOEOb/6hG3ejc9NUOROww xNmtyOnYERPcyD9RncW8XM+1Au0ABSqVzTJt9e6ZYEKusu3W2n7QSkyFt5qBrJOJBtOJ WR1Jr2Lz2Wny2iFxfZdmM/w/3pRfzYzIAUwSQh7v0IyQa3iYvgX1oxp0aW+m3Gu4oQ2v b/mA== X-Gm-Message-State: ALoCoQkoegVBMBkAZ3rtfRY3DH/efw09Nj4NNnPuarJWv3zHVIVZHHqViYb5sMrpxXpZu3T2Mi3w X-Received: by 10.236.98.33 with SMTP id u21mr16930171yhf.39.1406122818755; Wed, 23 Jul 2014 06:40:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.54 with SMTP id 51ls331362qgw.41.gmail; Wed, 23 Jul 2014 06:40:18 -0700 (PDT) X-Received: by 10.220.200.71 with SMTP id ev7mr2378443vcb.24.1406122818558; Wed, 23 Jul 2014 06:40:18 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id o6si1964280vcn.83.2014.07.23.06.40.18 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jul 2014 06:40:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so2155574vcb.4 for <patchwork-forward@linaro.org>; Wed, 23 Jul 2014 06:40:18 -0700 (PDT) X-Received: by 10.221.34.13 with SMTP id sq13mr2403677vcb.16.1406122818288; Wed, 23 Jul 2014 06:40:18 -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 tc5csp280500vcb; Wed, 23 Jul 2014 06:40:17 -0700 (PDT) X-Received: by 10.43.159.67 with SMTP id lx3mr3226712icc.58.1406122817561; Wed, 23 Jul 2014 06:40:17 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id n1si11022873igy.8.2014.07.23.06.40.17 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Jul 2014 06:40:17 -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 <xen-devel-bounces@lists.xen.org>) id 1X9wkW-0002rr-Fx; Wed, 23 Jul 2014 13:38:28 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <Stefano.Stabellini@citrix.com>) id 1X9wkU-0002re-Qh for xen-devel@lists.xenproject.org; Wed, 23 Jul 2014 13:38:26 +0000 Received: from [85.158.139.211:64566] by server-5.bemta-5.messagelabs.com id 86/43-11546-2DABFC35; Wed, 23 Jul 2014 13:38:26 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-2.tower-206.messagelabs.com!1406122704!17128405!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6057 invoked from network); 23 Jul 2014 13:38:25 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-2.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 23 Jul 2014 13:38:25 -0000 X-IronPort-AV: E=Sophos;i="5.01,717,1400025600"; d="scan'208";a="155401373" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 23 Jul 2014 13:38:23 +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 09:38:23 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from <stefano.stabellini@eu.citrix.com>) id 1X9wkR-00042c-7h; Wed, 23 Jul 2014 14:38:23 +0100 From: Stefano Stabellini <stefano.stabellini@eu.citrix.com> To: <xen-devel@lists.xenproject.org> Date: Wed, 23 Jul 2014 14:37:23 +0100 Message-ID: <1406122643-12028-2-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <alpine.DEB.2.02.1407231414480.2293@kaball.uk.xensource.com> References: <alpine.DEB.2.02.1407231414480.2293@kaball.uk.xensource.com> MIME-Version: 1.0 X-DLP: MIA2 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 v2 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: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=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.173 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
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);
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(-)