From patchwork Thu Apr 10 09:55:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 28145 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2B98020671 for ; Thu, 10 Apr 2014 09:56:08 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lg15sf10863768vcb.3 for ; Thu, 10 Apr 2014 02:56:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=THPTbDoKlNA8qlOzrDoBjiF7aoCVZx7oyktT0Z7TIDM=; b=YiZTyaqEyohtqD13tcSz/xnjgMtdMlCdomx566666lqNa/4IlWpg7yb7v7Q+v2yLE4 SyB4gzvTT7Db4NXMUc87PRzLocK0vLo9tbBQfS7rUjAzK7dBckeJgc7cctELc8lR9vMA DGzyiMmQQRTXq+c/T2KnzycjKStlfj/K5mRg86r/W+bCJcAuWYa1k4seh4Wp0WCplEJv bnEw3eIisFCpYfHTd780hwcjPIOpim7mDE9oYgCJPl5lbsDWA7G4cTG1o54xlJO6W/Vt HqOu0ADuncO35VqeeEPOJQ1QE1/kNIrtXCVc4prkScqrhFY14WnyR9I85htVcJcT7T2I DY/g== X-Gm-Message-State: ALoCoQmfHGHASBKvIoaC3sflmWmmbaJpuJz6ir4OkIgLgvWL3kC9JpIkDVEAjbM2lU57Mx1yx9HO X-Received: by 10.52.163.82 with SMTP id yg18mr6639380vdb.3.1397123767878; Thu, 10 Apr 2014 02:56:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.69 with SMTP id e63ls1117473qgd.29.gmail; Thu, 10 Apr 2014 02:56:07 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr13683031vcm.11.1397123767734; Thu, 10 Apr 2014 02:56:07 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id dl6si610329veb.19.2014.04.10.02.56.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:56:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so3128976veb.21 for ; Thu, 10 Apr 2014 02:56:07 -0700 (PDT) X-Received: by 10.52.90.37 with SMTP id bt5mr11565000vdb.7.1397123767666; Thu, 10 Apr 2014 02:56:07 -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.220.221.72 with SMTP id ib8csp45047vcb; Thu, 10 Apr 2014 02:56:07 -0700 (PDT) X-Received: by 10.66.124.232 with SMTP id ml8mr18563936pab.38.1397123766843; Thu, 10 Apr 2014 02:56:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xe4si1873677pbc.456.2014.04.10.02.56.06; Thu, 10 Apr 2014 02:56:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965660AbaDJJ4F (ORCPT + 9 others); Thu, 10 Apr 2014 05:56:05 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:34388 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965642AbaDJJzx (ORCPT ); Thu, 10 Apr 2014 05:55:53 -0400 Received: by mail-we0-f172.google.com with SMTP id t61so3724849wes.17 for ; Thu, 10 Apr 2014 02:55:51 -0700 (PDT) X-Received: by 10.194.9.73 with SMTP id x9mr218276wja.79.1397123751708; Thu, 10 Apr 2014 02:55:51 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-377-242.w86-199.abo.wanadoo.fr. [86.199.232.242]) by mx.google.com with ESMTPSA id hu7sm15690125wib.10.2014.04.10.02.55.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:55:51 -0700 (PDT) From: Daniel Lezcano To: kgene.kim@samsung.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, t.figa@samsung.com, linaro-kernel@lists.linaro.org, b.zolnierkie@samsung.com, sachin.kamat@linaro.org, viresh.kumar@linaro.org, rjw@rjwysocki.net Subject: [PATCH V4 13/20] ARM: exynos: cpuidle: Disable cpuidle for 5440 Date: Thu, 10 Apr 2014 11:55:44 +0200 Message-Id: <1397123751-1957-14-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397123751-1957-1-git-send-email-daniel.lezcano@linaro.org> References: <1397123751-1957-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , There is no point to register the cpuidle driver for the 5440 as it has only one WFI state which is the default idle function when the cpuidle driver is disabled. By disabling cpuidle we prevent to enter to the governor computation for nothing, thus saving a lot of processing time. The only drawback is the statistic via sysfs on this state which is lost but it is meaningless and it could be retrieved from the ftrace easily. Signed-off-by: Daniel Lezcano Reviewed-by: Tomasz Figa Acked-by: Amit Kucheria --- arch/arm/mach-exynos/cpuidle.c | 3 --- arch/arm/mach-exynos/exynos.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index ed7a439..d7091e0 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -133,9 +133,6 @@ static int exynos_cpuidle_probe(struct platform_device *pdev) { int ret; - if (soc_is_exynos5440()) - exynos_idle_driver.state_count = 1; - ret = cpuidle_register(&exynos_idle_driver, NULL); if (ret) { dev_err(&pdev->dev, "failed to register cpuidle driver\n"); diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index b567361..fe8dac8 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -227,6 +227,9 @@ static struct platform_device exynos_cpuidle = { void __init exynos_cpuidle_init(void) { + if (soc_is_exynos5440()) + return; + platform_device_register(&exynos_cpuidle); }