From patchwork Thu Mar 14 06:02:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 2267841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id D25013FCF6 for ; Thu, 14 Mar 2013 06:09:42 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UG1Jq-0002iU-CD; Thu, 14 Mar 2013 06:07:14 +0000 Received: from mail-ia0-x231.google.com ([2607:f8b0:4001:c02::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UG1GF-0000Hc-2W for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2013 06:03:31 +0000 Received: by mail-ia0-f177.google.com with SMTP id y25so1680707iay.8 for ; Wed, 13 Mar 2013 23:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=f2o3WSYb3q1Ytcy6SQxUN5j7ui12AiuYyK+e+IJCTSc=; b=fRXteoHIYceG2cllTKTymVaaMDhWw2enObLoE8mlXYnQ2TPu2eMIN/1UsJK2Q+DrTt G/o4DC0SHoP5yGP948N9IIqvVxeP9Eo7Zx4kDfBfLbrNnLGjLI8NRJ0JnDEfdElRLp8d BNeHpJ5DtxKQe1ht2w+V9zCYOUNVR9KaAuI+Dpy2nytlDu+jnSnr2KYRDPzfc66EyXm1 E9AvxvOSzr7ON7kBFnI96DkFEYpUsKVBmjTOoUk6AMhye1NUKj9nrsrGabp7Qwd1YCFV LIJnZwqznLxeuWjO7H5hwBDVKpwJjQk0tJ068g3BCfE1US57g2p6jLdNkM6BEXlgRPyu YTBA== X-Received: by 10.43.8.200 with SMTP id ot8mr992840icb.11.1363241007262; Wed, 13 Mar 2013 23:03:27 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id qn10sm6685977igc.6.2013.03.13.23.03.23 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 13 Mar 2013 23:03:26 -0700 (PDT) From: Amit Daniel Kachhap To: linux-samsung-soc@vger.kernel.org, Kukjin Kim Subject: [PATCH 3/3] ARM: EXYNOS: cpuidle: Allow C1 state only in supported SOC's. Date: Thu, 14 Mar 2013 11:32:59 +0530 Message-Id: <1363240979-1939-4-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1363240979-1939-1-git-send-email-amit.daniel@samsung.com> References: <1363240979-1939-1-git-send-email-amit.daniel@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130314_020331_228386_F0B1271C X-CRM114-Status: GOOD ( 12.17 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (amitdanielk[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Abhilash Kesavan , 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 This patch registers the basic C0 state for all exynos SOC's but limits the C1(AFTR -Arm off top running) state in only the supported SOC's(ie. EXYNOS 4210, 4212, 4412 and 5250). Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/cpuidle.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 4fc1f4f..459979a 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -177,7 +177,9 @@ static int __init exynos4_init_cpuidle(void) device->cpu = cpu_id; /* Support IDLE only */ - if (cpu_id != 0) + if (!(soc_is_exynos4210() || soc_is_exynos4212() || + soc_is_exynos4412() || soc_is_exynos5250()) || + cpu_id != 0) device->state_count = 1; ret = cpuidle_register_device(device);