From patchwork Wed Jun 12 11:28:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 2709431 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 AAB9DC1459 for ; Wed, 12 Jun 2013 11:31:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A06D20229 for ; Wed, 12 Jun 2013 11:31:47 +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 648292022F for ; Wed, 12 Jun 2013 11:31:46 +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 1UmjFt-0006U8-OB; Wed, 12 Jun 2013 11:30:23 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UmjFb-0003Uc-Cl; Wed, 12 Jun 2013 11:30:03 +0000 Received: from mail-pd0-f177.google.com ([209.85.192.177]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UmjFE-0003QV-L8 for linux-arm-kernel@lists.infradead.org; Wed, 12 Jun 2013 11:29:42 +0000 Received: by mail-pd0-f177.google.com with SMTP id p10so4262651pdj.36 for ; Wed, 12 Jun 2013 04:29:19 -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=EyDXBrT6Gso7U046LenMIJeNE0dwNvLXpfyrn9MPPZE=; b=hWVnlEu/if7LcwOjlxxqLbbXf9mgVeYn3GAHx93MrODlEfvnFqcaeRXQKu7iukqOSO 8RYdwq9i6YzLJrDojssfKGEkPfeSWHFUJNAGz9pQmVNRBxxfMS6s9b6ixqoq95Gym3GD pnNuUCYh4o0zDBega0tSLmEfT/LFVF40/ReOwDQcSUffzv5OfKWCdpBtHSP94E1830Bf US984V3rxetSOALnq11/oTjU7iLloEzlKCDNLfdcVn+yNc9bkB6ebib7eyv1aMxYHqf5 cc4xLWcKjF8wAG+jDvTghvqFTMhDFE+RNcSH7qTfnFWse1gXHMY9RZDL/PZZ5vxiLAn8 hTew== X-Received: by 10.66.50.4 with SMTP id y4mr23813280pan.216.1371036558972; Wed, 12 Jun 2013 04:29:18 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id xu10sm24527692pab.3.2013.06.12.04.29.15 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 12 Jun 2013 04:29:17 -0700 (PDT) From: Amit Daniel Kachhap To: linux-samsung-soc@vger.kernel.org, Kukjin Kim Subject: [PATCH V2 2/2] ARM: EXYNOS: cpuidle: Allow C1 state only in supported SOC's. Date: Wed, 12 Jun 2013 16:58:46 +0530 Message-Id: <1371036526-16589-3-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1371036526-16589-1-git-send-email-amit.daniel@samsung.com> References: <1371036526-16589-1-git-send-email-amit.daniel@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130612_072940_864169_820EE435 X-CRM114-Status: GOOD ( 12.67 ) X-Spam-Score: -1.9 (-) 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 X-Spam-Status: No, score=-4.3 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 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 2d071c6..ccb2b48 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -176,7 +176,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);