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: 2709401 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 61E22C1459 for ; Wed, 12 Jun 2013 11:29:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 484AF201FC for ; Wed, 12 Jun 2013 11:29:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 70B9C2020B for ; Wed, 12 Jun 2013 11:29:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756607Ab3FLL3U (ORCPT ); Wed, 12 Jun 2013 07:29:20 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:63824 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751217Ab3FLL3T (ORCPT ); Wed, 12 Jun 2013 07:29:19 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so9814977pdj.28 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 Cc: linux-arm-kernel@lists.infradead.org, Thomas Abraham , Abhilash Kesavan 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> 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=-7.0 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 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);