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: 2849562 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 222179F271 for ; Mon, 26 Aug 2013 12:16:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E91D202B8 for ; Mon, 26 Aug 2013 12:16:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3BE27201E0 for ; Mon, 26 Aug 2013 12:16:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751617Ab3HZMQT (ORCPT ); Mon, 26 Aug 2013 08:16:19 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:34662 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751554Ab3HZMQT (ORCPT ); Mon, 26 Aug 2013 08:16:19 -0400 Received: by mail-pd0-f181.google.com with SMTP id g10so3363317pdj.40 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 Cc: linux-arm-kernel@lists.infradead.org, Thomas Abraham , Kukjin Kim , Bartlomiej Zolnierkiewicz 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> 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=-9.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 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");