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: 3948491 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 912E7BFF02 for ; Tue, 8 Apr 2014 12:20:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 89A6B2037E for ; Tue, 8 Apr 2014 12:19:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E758203AC for ; Tue, 8 Apr 2014 12:19:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756672AbaDHMTw (ORCPT ); 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DQK0kNLL1cTSZDbKO+ZmKQlhiDceEMXVeumJjRQaouI=; b=W7dL2+6kM271DBMGkeUNetqm4L3mQPdnPwbNJaSy3AX0RYoLFT08hGTI4+eTlmYU/r oOTzR2uw/J5H+6HuJ32FFK2Egp7ubpNaV67ZoUE2/0dCyEeV2cDmDdtgolvOqlG4nbIQ 0eaukUCKitD9r+GeeXt4h2LzM+4aWt+A1StfCAUTzNoqGzVuMC9O/OFblGP8vwuE0oGW jrPKz93cfRSSTYZZnDTIsh5X73bNJ5VcHs9+q62RhCbStH6X/xgCTob2W1FccRKUu3OL bh7dqm5IoRn9kTqAq1YOQpeguDl8MzC3GhOCl3ox7klyG1+xgbf1Gi1uSxFBResMmlJz ECZQ== X-Gm-Message-State: ALoCoQla4h0ZPGmQCHUdlOlMXmK5rUZpx6+JG1MzaEYBLfX0+njBsdMC7G/ycpInte088/WX633d 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: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }