From patchwork Fri May 16 08:03:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 4188821 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 2EB79BFF02 for ; Fri, 16 May 2014 08:22:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6460820253 for ; Fri, 16 May 2014 08:22:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B7342016C for ; Fri, 16 May 2014 08:22:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756513AbaEPIEp (ORCPT ); Fri, 16 May 2014 04:04:45 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:39374 "EHLO mail-pb0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756504AbaEPIEl (ORCPT ); Fri, 16 May 2014 04:04:41 -0400 Received: by mail-pb0-f41.google.com with SMTP id uo5so2294689pbc.28 for ; Fri, 16 May 2014 01:04:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hJOqRnpN14mXc3mGBdT6dReEzHKpdeSgRr+rob94ZaQ=; b=TgOfM1yEY76FZ0KZ/EddUUd18hI6PLqJ6CjcawLIbda6Y6pAWTb8OyPC2gk9FRru31 NnFFJg9Bu3GAflRIVZ5FBUx9DYLwHMyTDOO+YW7db6X4aefqjuZFI3OrIDNY5FlhJ1nc VboH0FA0qVm5vq+ssev33KXcaHbFtI6YeREuaqyyBBKYi/y93ec5CDVmmP72Eotp8Gnq 3AMb4YJySmAVVjlq+fSnAccMCb/1rCLtSOnxJup7z2/SJZI7wu7NiBmsam0SoBjUuuHa MjnGggOcRg98aTlq2jJ+7hWjXF65RJdRC4H5nGRZAuE4tuXXusi/ods0v4Z5TDjDWifc n2JA== X-Gm-Message-State: ALoCoQn96edwWYWoLE8CGG2+hRgJVq+xKADw0sJK9GSEoVy4m+gOv+F+ROIS75MVU8uSDICgGpV/ X-Received: by 10.66.136.71 with SMTP id py7mr18966810pab.2.1400227480781; Fri, 16 May 2014 01:04:40 -0700 (PDT) Received: from localhost.localdomain ([14.140.216.146]) by mx.google.com with ESMTPSA id gu1sm13108466pbd.0.2014.05.16.01.04.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 May 2014 01:04:40 -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 v6 5/6] exynos: cpuidle: do not allow cpuidle registration for Exynos5420 Date: Fri, 16 May 2014 13:33:57 +0530 Message-Id: <1400227438-27155-6-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400227438-27155-1-git-send-email-chander.kashyap@linaro.org> References: <1400227438-27155-1-git-send-email-chander.kashyap@linaro.org> 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.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 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 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 4df3452..ef24edf 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -286,7 +286,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);