From patchwork Fri Apr 11 10:40:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3967581 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BF0899F336 for ; Fri, 11 Apr 2014 10:40:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1CEB207F3 for ; Fri, 11 Apr 2014 10:40:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17873207EF for ; Fri, 11 Apr 2014 10:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757242AbaDKKkU (ORCPT ); Fri, 11 Apr 2014 06:40:20 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:59022 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934717AbaDKKkP (ORCPT ); Fri, 11 Apr 2014 06:40:15 -0400 Received: by mail-wi0-f170.google.com with SMTP id bs8so2318357wib.3 for ; Fri, 11 Apr 2014 03:40:14 -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=ESNCi3ABYQjN+hinVCX/xpRfKlf4YwuPSKCdbSl/ueU=; b=N0cXbfzcZy8lbcOCPOFnPMgCbgzj6yLcCtQi5/OvYoagZnnveN6cHNIspXBaznI4Lg dYWmTmY3ioBWdQAsgjmjxjGgDokntm+WKYEZC0NuWQsKkRmyp761VKJRWh4Ne5iYvD98 n1KV3ckFpfg5yQpmUQRYVFnf3mi9OKutFWKH2FqybA6eAh9s1sSlcsaTZmfg6Q96Whgb eX9CAkaq2vFUUa4vZmEXnBSTaagiK8lbksCGXryhxZ7dLeOiQY5MN/8oZdPVCzMpgIHU XKl8lpoyJVaeKkH1cGHObYKC5FI+Oh9x+PqzTBxg+bxsfH19DokyRppiVDplmDk/mzAE bfVQ== X-Gm-Message-State: ALoCoQlXN3ANYRlhDs16fjaXPPldRrNZEF919vt4AJJ52rQpGg7edQ4lowxN8sU6hGfCrpbv2R8A X-Received: by 10.194.82.9 with SMTP id e9mr20039250wjy.45.1397212814463; Fri, 11 Apr 2014 03:40:14 -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 eq8sm3683033wib.16.2014.04.11.03.40.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 03:40:13 -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, rjw@rjwysocki.net Subject: [PATCH V5 13/20] ARM: exynos: cpuidle: Disable cpuidle for 5440 Date: Fri, 11 Apr 2014 12:40:08 +0200 Message-Id: <1397212815-16068-14-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397212815-16068-1-git-send-email-daniel.lezcano@linaro.org> References: <1397212815-16068-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.3 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 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 f66ee4d..95313ea 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); }