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: 28262 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E57B920822 for ; Fri, 11 Apr 2014 10:40:25 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f10sf16758111yha.11 for ; Fri, 11 Apr 2014 03:40:25 -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=I2rB0gSZgx0NxEkdzUVeefgm1pQHvmXlSXdCxCQoVXw=; b=P3aChfxIjUSdS7EJDUQlpjEZ59mwGyOtz4FRRwO5OG4hwEEFJbM3xFcN2V4lwbHQpK N7OO9Br7YAR3Y7YdG6LbUkN8grKGQ/hhsrSnt+1wdaohvtAZrB+/GkNiIEeBLwagyREE kxenMq094PL1sZKTGR55oQ0LdE8Iv9CcYQ0ucWMtgsrQlouPFwN9XR8ylvXxbyqPLX0v Spx8PnU4qgczqEE63zZqb8crYa8CmpBMb9cs6OP4WqXCZQ1eVCUMRM6mD/ODukJtarQp qRsRV4T/SuQmb/qswQuuoiOpjXHGKyKzwqro0RfA5ABOT9MgI7l3KaTl0BZzG1GhvP5p COxA== X-Gm-Message-State: ALoCoQnA7AZi4IvOh6bX0T02dPt9pPPYcya0RYFfjWQyWegAjJ0uVxnNwDaCxtcEEHftyfg4nO0q X-Received: by 10.58.195.202 with SMTP id ig10mr11311520vec.38.1397212825544; Fri, 11 Apr 2014 03:40:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.232 with SMTP id 95ls1582032qgp.68.gmail; Fri, 11 Apr 2014 03:40:25 -0700 (PDT) X-Received: by 10.52.15.132 with SMTP id x4mr726530vdc.31.1397212825448; Fri, 11 Apr 2014 03:40:25 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id gs7si1224809vdc.74.2014.04.11.03.40.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 03:40:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 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.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so4734106veb.32 for ; Fri, 11 Apr 2014 03:40:25 -0700 (PDT) X-Received: by 10.221.55.133 with SMTP id vy5mr19303242vcb.17.1397212825358; Fri, 11 Apr 2014 03:40:25 -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 ib8csp46124vcb; Fri, 11 Apr 2014 03:40:25 -0700 (PDT) X-Received: by 10.66.192.225 with SMTP id hj1mr26445922pac.142.1397212824795; Fri, 11 Apr 2014 03:40:24 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xy8si3963775pab.160.2014.04.11.03.40.24; Fri, 11 Apr 2014 03:40:24 -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 S1757242AbaDKKkU (ORCPT + 8 others); 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-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: 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.173 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 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); }