From patchwork Tue Apr 8 12:19:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27951 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 95A5820553 for ; Tue, 8 Apr 2014 12:19:54 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf3761364oag.10 for ; Tue, 08 Apr 2014 05:19:54 -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=HiP1N08sxoqcvo2J78QAA0zd8l92UL6NCH7LcC7S2BQ=; b=KVGmbOyRLm0fWawJmR3W+rkNK4NKWJ9VEpRlrJlH8Y30pZ3KCgx5gn99I4H5MnFK2x w3/B6pss4iAtw7qj02YFeg9p9cCrFmiepPK7W0C8QHxoPYsoJB1XYvbKWakdQpadEceT QEM1caPfb/qWYtOmzIw1D/WZlD4H2qAqcxoqjuJ+OF7kItkvQewBIg+GK6+XTSpZUmNs s18pwCqiUkebqAIpaIRVZyWPjNOHfl5xHbuxz4TV5xL4zYYDe6vqbEiaXazTg3y1u3uj +RxwzkhZtYfixtcT3onS8eVu8mfUDOgvQ3SnPpRHfdYb5ntmTDQv8tUfhFI9CdkiW7if iasg== X-Gm-Message-State: ALoCoQl+0BIqYifD/RTsQef4PzoSgBn/r14AMVynwOIzWmzdv3sK3fW1A+JasJgdyy81h5mNQAES X-Received: by 10.182.108.136 with SMTP id hk8mr1613522obb.11.1396959594150; Tue, 08 Apr 2014 05:19:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.233 with SMTP id l96ls178886qgl.90.gmail; Tue, 08 Apr 2014 05:19:54 -0700 (PDT) X-Received: by 10.58.201.5 with SMTP id jw5mr2898088vec.6.1396959594010; Tue, 08 Apr 2014 05:19:54 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id kp14si364000vcb.2.2014.04.08.05.19.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:19:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so668452vcb.33 for ; Tue, 08 Apr 2014 05:19:53 -0700 (PDT) X-Received: by 10.58.107.65 with SMTP id ha1mr3009040veb.1.1396959593918; Tue, 08 Apr 2014 05:19:53 -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.12.8 with SMTP id v8csp240644vcv; Tue, 8 Apr 2014 05:19:53 -0700 (PDT) X-Received: by 10.68.178.162 with SMTP id cz2mr4147325pbc.51.1396959593230; Tue, 08 Apr 2014 05:19:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tx1si993786pbc.150.2014.04.08.05.19.52; Tue, 08 Apr 2014 05:19:52 -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 S1756672AbaDHMTw (ORCPT + 9 others); Tue, 8 Apr 2014 08:19:52 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:51554 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756227AbaDHMTv (ORCPT ); Tue, 8 Apr 2014 08:19:51 -0400 Received: by mail-we0-f172.google.com with SMTP id t61so860626wes.3 for ; Tue, 08 Apr 2014 05:19:50 -0700 (PDT) X-Received: by 10.180.108.147 with SMTP id hk19mr31448884wib.42.1396959590280; Tue, 08 Apr 2014 05:19:50 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-451-172.w83-205.abo.wanadoo.fr. [83.205.74.172]) by mx.google.com with ESMTPSA id u1sm3000063wjx.16.2014.04.08.05.19.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:19:49 -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 V3 15/17] ARM: exynos: cpuidle: Disable cpuidle for 5440 Date: Tue, 8 Apr 2014 14:19:37 +0200 Message-Id: <1396959579-18268-16-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396959579-18268-1-git-send-email-daniel.lezcano@linaro.org> References: <1396959579-18268-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.220.174 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 --- arch/arm/mach-exynos/cpuidle.c | 5 ----- arch/arm/mach-exynos/exynos.c | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 4b94181..a1f111e 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -16,8 +16,6 @@ #include #include -#include - #include "common.h" static int idle_finisher(unsigned long flags) @@ -77,9 +75,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); }