From patchwork Wed Jul 24 09:53:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 2832617 Return-Path: X-Original-To: patchwork-linux-arm@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 BCBB0C0319 for ; Wed, 24 Jul 2013 09:54:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D67D2200E1 for ; Wed, 24 Jul 2013 09:54:29 +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 E251D20035 for ; Wed, 24 Jul 2013 09:54:28 +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 1V1vm3-000511-SF; Wed, 24 Jul 2013 09:54:24 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V1vm1-0006Fw-JE; Wed, 24 Jul 2013 09:54:21 +0000 Received: from mail-pb0-x235.google.com ([2607:f8b0:400e:c01::235]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V1vly-0006F3-2v for linux-arm-kernel@lists.infradead.org; Wed, 24 Jul 2013 09:54:19 +0000 Received: by mail-pb0-f53.google.com with SMTP id xb12so9572010pbc.12 for ; Wed, 24 Jul 2013 02:53:53 -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:x-mailer:in-reply-to :references; bh=F/JiLDa0FWOoYrwcAxJD0bKVzNN4QS+1aj4Qi+tEnc8=; b=IYvDkKE89n2PTMdve8RA4ziyS9Veyzw8wSwVskvkDdRtZMplS570s+AaFJifsG1MP+ ZPc0BFqSUYsunhkz+MneCae0ip+BIGTKcjo88vVNW/QVTO70m9EJSlJa3Ius2VghKtSF QGclDWz3PaRNrm4fFAS9lIkVeQ1X/8lDY4BGR//7CukiuoiQBTE4I3aIQqT+P6exrGIH 2C9xU+MkeOnODTbYq6O22JQNRRO85hfCWEemAC0/3tMoPhXc98X5M36fcWZeirFcdLh1 B/3rQcdaK37a7CP2tYW/vKVCVw2tm89spyg1j0uToILgEDJMxN33aqnHgWOiLydKTw4d 7lLg== X-Received: by 10.68.17.169 with SMTP id p9mr41298086pbd.17.1374659630884; Wed, 24 Jul 2013 02:53:50 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id pq1sm46916078pbb.26.2013.07.24.02.53.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 24 Jul 2013 02:53:49 -0700 (PDT) From: Amit Daniel Kachhap To: linux-samsung-soc@vger.kernel.org, Kukjin Kim Subject: [PATCH] ARM: EXYNOS: cpuidle: Skip C1 cpuidle state for exynos5440 Date: Wed, 24 Jul 2013 15:23:35 +0530 Message-Id: <1374659615-29447-1-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <0e7d01ce8840$82f79070$88e6b150$@org> References: <0e7d01ce8840$82f79070$88e6b150$@org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130724_055418_208635_F3D146C9 X-CRM114-Status: GOOD ( 13.26 ) X-Spam-Score: -1.9 (-) Cc: Thomas Abraham , linux-arm-kernel@lists.infradead.org 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=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,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. All the cpu's only allows the basic C0 state. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpuidle.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 17a18ff..9a776a1 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -210,7 +210,7 @@ static int __init exynos4_init_cpuidle(void) device->cpu = cpu_id; /* Support IDLE only */ - if (cpu_id != 0) + if (soc_is_exynos5440() || cpu_id != 0) device->state_count = 1; ret = cpuidle_register_device(device);