From patchwork Mon Jun 16 10:26:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 31930 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f200.google.com (mail-ig0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 85CBE20E7A for ; Mon, 16 Jun 2014 10:27:16 +0000 (UTC) Received: by mail-ig0-f200.google.com with SMTP id l13sf11087563iga.7 for ; Mon, 16 Jun 2014 03:27:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=PdahToKhgn0lfMUsBmNwSLXqgNRteyLq2hHPz89hNMU=; b=BYDon7CkcUL76TWfoUCypghHCojzw/RJIYatpzhbforP7ozq/XRg1CS3Kj2bnCwYjf Aepbifgp+0Rw55einQRze6SS0jA/rFxWc8IsnVQD+QlCvobZbMeBdjIh1RT9g9F0r+Lk 7WiESGvpe5+CMNjfAPjeIxIJs5pynyA1wCtaqk9aXuo0/C9GCRcxB9VIWN1s4CEE/+4K +4xA1I+/tdbKqYM4sUnCjVE5ztzUc1Y2Kl1zxq2xK/9jqOck0bwi1fDWo8oJThqFI4cp A9xEAP9VpY5a47zOnuLWLGUW+elv//oOaABDBd4CGUqNqkRsg7SLpAiDiRsnoJII12u8 7+Vg== X-Gm-Message-State: ALoCoQkZAPwxQ08ZrAMdIiUXy7gMfJm9WYg98/NdA0ouEpoxzk8JCVBLVYi46jHdJG6ICfZY3Ycv X-Received: by 10.50.131.228 with SMTP id op4mr565430igb.2.1402914436115; Mon, 16 Jun 2014 03:27:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.203 with SMTP id v69ls4241232qgd.6.gmail; Mon, 16 Jun 2014 03:27:16 -0700 (PDT) X-Received: by 10.58.85.3 with SMTP id d3mr775727vez.34.1402914436034; Mon, 16 Jun 2014 03:27:16 -0700 (PDT) Received: from mail-ve0-x22d.google.com (mail-ve0-x22d.google.com [2607:f8b0:400c:c01::22d]) by mx.google.com with ESMTPS id aa6si3935849vec.66.2014.06.16.03.27.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Jun 2014 03:27:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::22d as permitted sender) client-ip=2607:f8b0:400c:c01::22d; Received: by mail-ve0-f173.google.com with SMTP id db11so5880791veb.32 for ; Mon, 16 Jun 2014 03:27:15 -0700 (PDT) X-Received: by 10.52.13.98 with SMTP id g2mr262267vdc.46.1402914435935; Mon, 16 Jun 2014 03:27:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp124206vcb; Mon, 16 Jun 2014 03:27:15 -0700 (PDT) X-Received: by 10.66.246.229 with SMTP id xz5mr23182202pac.119.1402914435143; Mon, 16 Jun 2014 03:27:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ah1si10471911pbc.97.2014.06.16.03.27.14; Mon, 16 Jun 2014 03:27:14 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932120AbaFPK1E (ORCPT + 9 others); Mon, 16 Jun 2014 06:27:04 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:53379 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932101AbaFPK1B (ORCPT ); Mon, 16 Jun 2014 06:27:01 -0400 Received: by mail-pd0-f178.google.com with SMTP id r10so4294718pdi.37 for ; Mon, 16 Jun 2014 03:27:00 -0700 (PDT) X-Received: by 10.68.224.198 with SMTP id re6mr23263553pbc.8.1402914420717; Mon, 16 Jun 2014 03:27:00 -0700 (PDT) Received: from localhost.localdomain ([14.140.216.146]) by mx.google.com with ESMTPSA id gr10sm17922046pbc.84.2014.06.16.03.26.56 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Jun 2014 03:27:00 -0700 (PDT) From: Chander Kashyap To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, daniel.lezcano@linaro.org, lorenzo.pieralisi@arm.com, rjw@rjwysocki.net, kgene.kim@samsung.com, tomasz.figa@gmail.com, Chander Kashyap , Chander Kashyap Subject: [Patch v7 5/6] exynos: cpuidle: do not allow cpuidle registration for Exynos5420 Date: Mon, 16 Jun 2014 15:56:22 +0530 Message-Id: <1402914383-20471-6-git-send-email-k.chander@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402914383-20471-1-git-send-email-k.chander@samsung.com> References: <1402914383-20471-1-git-send-email-k.chander@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: linux-kernel-owner@vger.kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::22d as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Chander Kashyap Exynos5420 is big.Little Soc. It uses cpuidle-big-litle generic cpuidle driver. Hence do not allow exynos cpuidle driver registration for Exynos5420. Signed-off-by: Chander Kashyap Signed-off-by: Chander Kashyap Reviewed-by: Tomasz Figa Acked-by: Daniel Lezcano --- Changes in v6: 1. Move cpuidle registration check to exynos.c from cpuidle.c and use "samsung,exynos5420" compatible string to avvoid registration arch/arm/mach-exynos/exynos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 90aab4d..f4c08d6 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -271,7 +271,9 @@ static void __init exynos_dt_machine_init(void) } } - exynos_cpuidle_init(); + if (!of_machine_is_compatible("samsung,exynos5420")) + exynos_cpuidle_init(); + exynos_cpufreq_init(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);