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: 4357491 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4CB1A9F314 for ; Mon, 16 Jun 2014 10:27:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 721EC20103 for ; Mon, 16 Jun 2014 10:27:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DC45E201ED for ; Mon, 16 Jun 2014 10:27:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932105AbaFPK1D (ORCPT ); Mon, 16 Jun 2014 06:27:03 -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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=7AaJf01+Bo3u+pddQyIko1U6hIspO667LFoPOARod7A=; b=a5YAGcIRJBsj6K6RWPzkRiQ52Z/IBtawGAN2bJY91WTjXEAuAFDft21R9j2YYfmlMN 6uNsNlgl7XSBqP6p114VvSr8ykcnfpkGFPbhHc/9Nna8Kx/820WRAtS9teJ5BJJihNhD 0Ey1nFosKlmil4kbz6mw3hwevWgVKAOP7vVTl6dbvlh4LVpvW2+cf52btmcr6Dkfl25t 6AwyoGznHClkkPo7K7c1tVYkFD1qe+nnoighVsjSwCyYMa/kKPoYCFKS+4nvF99m6Jaz rSdk8MBIQPfkB2wUI4olVUM70QN9mR2w1uXRFN9EThkUVlF9chYnY6HP0lSJ2agcRxaX BVsA== 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-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.8 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 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);