From patchwork Mon Jul 15 14:21:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 18360 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 7C31225E13 for ; Mon, 15 Jul 2013 14:21:49 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id hf12sf14151284vcb.9 for ; Mon, 15 Jul 2013 07:21:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=so/MVVAu+ezrX+99zg2kRcUC4mzYQkXV3I6VCidEOmc=; b=j2USDm7IrLZAUBrgypMdKJyhrKDyBXLAijk4ySXOkBq1ADSsVq4BkM9Vva5vq3ILob CZTDcD/XalRCjBn2UmY4vVCC+jwf2h1CGFZa2gXXUXwY0mwIcRCFj7wiAggBB+CiCOBL L/YMfz9H3B4tcHqfgMeR4rIcWz9tdrUjN7bP1nCi5KCD3bNSqb3WUno/TiqUeOcAn36O h9RhZaZ3Mof24kPixSObFyFzAHSUigAiGAOL8irCrQ6w7ba3pvgljaObM720HPCpIY0N 52D0ulD7wa1VdH8IHQG9mhid1xDDjv7IGHo2KjQWNcSQQb63hwwHBm+koyXARDHNkYfD pfyQ== X-Received: by 10.236.137.35 with SMTP id x23mr29782552yhi.7.1373898109097; Mon, 15 Jul 2013 07:21:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.116.105 with SMTP id jv9ls4425619qeb.92.gmail; Mon, 15 Jul 2013 07:21:48 -0700 (PDT) X-Received: by 10.220.67.10 with SMTP id p10mr28146194vci.85.1373898108951; Mon, 15 Jul 2013 07:21:48 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id im6si14812885vdb.137.2013.07.15.07.21.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 07:21:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hv10so9182647vcb.22 for ; Mon, 15 Jul 2013 07:21:48 -0700 (PDT) X-Received: by 10.52.69.177 with SMTP id f17mr24515542vdu.48.1373898108877; Mon, 15 Jul 2013 07:21:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.149.77 with SMTP id s13csp71827vcv; Mon, 15 Jul 2013 07:21:48 -0700 (PDT) X-Received: by 10.180.187.17 with SMTP id fo17mr9079839wic.60.1373898107438; Mon, 15 Jul 2013 07:21:47 -0700 (PDT) Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by mx.google.com with ESMTPS id q5si17431901wja.30.2013.07.15.07.21.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 07:21:47 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.170 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.170; Received: by mail-we0-f170.google.com with SMTP id w57so10298862wes.29 for ; Mon, 15 Jul 2013 07:21:46 -0700 (PDT) X-Received: by 10.180.74.146 with SMTP id t18mr9210440wiv.3.1373898106888; Mon, 15 Jul 2013 07:21:46 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id u9sm21256068wif.6.2013.07.15.07.21.45 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 07:21:46 -0700 (PDT) From: Julien Grall To: stefano.stabellini@eu.citrix.com Cc: ian.campbell@citrix.com, patches@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xen-devel@lists.xen.org, Julien Grall Subject: [PATCH] xen/arm: disable cpuidle when linux is running as dom0 Date: Mon, 15 Jul 2013 15:21:41 +0100 Message-Id: <1373898101-15633-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQlB9w4ZGYhvKZAfKGk4Q+VxPY6h3R1VS9SoNb8JYV2ZxAF1nfcivzBEEXkDqXHxMSZA8JZF X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When linux is running as dom0, Xen doesn't show the physical cpu but a virtual CPU. On some ARM SOC (for instance the exynos 5250), linux registers callbacks for cpuidle. When these callbacks are called, they will modify directly the physical cpu not the virtual one. It can impact the whole board instead of dom0. Signed-off-by: Julien Grall --- arch/arm/xen/enlighten.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 49839d8..a98999f 100644 --- a/arch/arm/xen/enlighten.c +++ b/arch/arm/xen/enlighten.c @@ -24,6 +24,8 @@ #include #include #include +#include +#include #include @@ -292,6 +294,11 @@ static int __init xen_pm_init(void) { pm_power_off = xen_power_off; arm_pm_restart = xen_restart; + /* + * Making sure board specific code will not set up ops for + * cpu idle. + */ + disable_cpuidle(); return 0; }