From patchwork Mon Aug 26 12:16:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 2849563 Return-Path: X-Original-To: patchwork-linux-arm@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 B21EF9F271 for ; Mon, 26 Aug 2013 12:16:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33B60202C0 for ; Mon, 26 Aug 2013 12:16:56 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D552201F3 for ; Mon, 26 Aug 2013 12:16:54 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VDviy-00005w-5R; Mon, 26 Aug 2013 12:16:48 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VDviv-0005TN-Mn; Mon, 26 Aug 2013 12:16:45 +0000 Received: from mail-pd0-x232.google.com ([2607:f8b0:400e:c02::232]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VDvis-0005SY-B8 for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2013 12:16:43 +0000 Received: by mail-pd0-f178.google.com with SMTP id w10so3407366pde.9 for ; Mon, 26 Aug 2013 05:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=bgBxICDRybbU3ftB3wt/eFYwh9pVOENogUh+7B9E8d0=; b=BQpFFkaOjfvU3zv2dLx3XnD8J4+7iekv1OLUN+QGLn09VysrisTUwaAHS3HzA2C6bU 9VTl2FfT8dHP00jKzdAG1v50nLhJ+NpAkXR34FEJ7xuelbtMzsWgZ6Esn3pTeoBLnYiO GEbWSEdkX4wQby7yko6whN9mUtbjG42c36eEgkqTv7Kb1sRXa1htLafkMobDQTPo4lAK Dnkw661t8j8U6OOTlDq47MYE58ufZucjDbvVfuIUr3uULku5jBnlEaK2ZRolNEsmtkYi 0y9e0gA9FbXtehhNyjrrM4jS8d0s6tyzpIMQEaghqYRy2FpniGZDt6IyoLOJFuHvh1VC ++4Q== X-Received: by 10.66.191.137 with SMTP id gy9mr2751529pac.147.1377519378633; Mon, 26 Aug 2013 05:16:18 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id br3sm17686968pbd.31.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 26 Aug 2013 05:16:17 -0700 (PDT) From: Amit Daniel Kachhap To: linux-samsung-soc@vger.kernel.org, Kukjin Kim Subject: [PATCH V2] ARM: EXYNOS: cpuidle: Skip C1 cpuidle state for exynos5440 Date: Mon, 26 Aug 2013 17:46:03 +0530 Message-Id: <1377519363-23077-1-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <4070794.XxjluIqBpK@amdc1032> References: <4070794.XxjluIqBpK@amdc1032> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130826_081642_481732_80DCE42A X-CRM114-Status: GOOD ( 13.84 ) X-Spam-Score: -1.9 (-) Cc: Kukjin Kim , Thomas Abraham , linux-arm-kernel@lists.infradead.org, Bartlomiej Zolnierkiewicz X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 This patch skips the deep C1(AFTR -Arm off top running) state for exynos5440 soc as this soc does not support this state. The cpu's only allows the basic C0 state. The C1 state is filtered by re-initialising the driver state_count value to 1. Cc: Kukjin Kim Cc: Bartlomiej Zolnierkiewicz Signed-off-by: Amit Daniel Kachhap Acked-by: Bartlomiej Zolnierkiewicz --- Changes in V2: * Used driver state_count variable to filter the C1 state instead of device state count variable. Although this V2 patch is also not complete as there are suggestions to make this driver platform driver. arch/arm/mach-exynos/cpuidle.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 225ee84..ac13922 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -200,6 +200,9 @@ static int __init exynos4_init_cpuidle(void) if (soc_is_exynos5250()) exynos5_core_down_clk(); + if (soc_is_exynos5440()) + exynos4_idle_driver.state_count = 1; + ret = cpuidle_register_driver(&exynos4_idle_driver); if (ret) { printk(KERN_ERR "CPUidle failed to register driver\n");