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: 2267751 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 79FADDFB79 for ; Thu, 14 Mar 2013 06:03:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753990Ab3CNGD2 (ORCPT ); Thu, 14 Mar 2013 02:03:28 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:61823 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753837Ab3CNGD1 (ORCPT ); Thu, 14 Mar 2013 02:03:27 -0400 Received: by mail-ie0-f180.google.com with SMTP id bn7so2521095ieb.25 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 Cc: linux-arm-kernel@lists.infradead.org, Thomas Abraham , Abhilash Kesavan 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> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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);