From patchwork Fri Apr 4 07:47:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27777 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E59E42054B for ; Fri, 4 Apr 2014 07:48:01 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id e16sf7728123qcx.6 for ; Fri, 04 Apr 2014 00:48:01 -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=lDIBmnVRWj/Isa5vNkdqsE1pp09T/UI5w+VixC7usVA=; b=fFFvJBjiip9v/lw/I9TPBlvHonMhuocMrCUyOSGO/jzMdNQkftzRlKtkvvzMW1RwWg ZJTAIjs4a12c+qgTzGQ7qtGl7TWm9mOjl9xpD4moQKyywkYgrw6LOKRR6IYN9lTEpxTr 9b2w1caujmgEyRTBAXsSKpuorqwOUUnh+znVyUGxI++SSH/M6pTXlUd2H4pBKZDTGsn9 AukHp6EBrn8h6/38qZmhXeBw4H7LR0XgLdC/+qriXV018CmPcgsKYGm66Vpjfliy2B8Q QeSu6P5X+69vJ/vgt3SfhNpkuZF4940cR4Ol1zIU1sqLwW3vYUuJIqxiLM3zk8nMk1S8 JKyg== X-Gm-Message-State: ALoCoQmUd/AOzw0z/wis6RP6alshfqq/FqlKXFzNJJXZlzYSoS2ydKZfeE8y2DSjeEedHsurEL4u X-Received: by 10.236.209.134 with SMTP id s6mr5670894yho.40.1396597681630; Fri, 04 Apr 2014 00:48:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.198 with SMTP id h64ls970307qgf.84.gmail; Fri, 04 Apr 2014 00:48:01 -0700 (PDT) X-Received: by 10.220.191.134 with SMTP id dm6mr7128108vcb.16.1396597681518; Fri, 04 Apr 2014 00:48:01 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id uq6si1675183vcb.0.2014.04.04.00.48.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 00:48:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id lc6so2804287vcb.21 for ; Fri, 04 Apr 2014 00:48:01 -0700 (PDT) X-Received: by 10.52.33.136 with SMTP id r8mr10025310vdi.2.1396597681437; Fri, 04 Apr 2014 00:48:01 -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.220.12.8 with SMTP id v8csp92807vcv; Fri, 4 Apr 2014 00:48:01 -0700 (PDT) X-Received: by 10.66.144.200 with SMTP id so8mr13343068pab.15.1396597680526; Fri, 04 Apr 2014 00:48:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iw3si4270530pac.96.2014.04.04.00.47.59; Fri, 04 Apr 2014 00:48:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752127AbaDDHr7 (ORCPT + 9 others); Fri, 4 Apr 2014 03:47:59 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:51957 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750755AbaDDHr7 (ORCPT ); Fri, 4 Apr 2014 03:47:59 -0400 Received: by mail-wi0-f175.google.com with SMTP id cc10so686291wib.8 for ; Fri, 04 Apr 2014 00:47:58 -0700 (PDT) X-Received: by 10.194.119.168 with SMTP id kv8mr17401545wjb.41.1396597678018; Fri, 04 Apr 2014 00:47:58 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-451-172.w83-205.abo.wanadoo.fr. [83.205.74.172]) by mx.google.com with ESMTPSA id t1sm3028163wia.1.2014.04.04.00.47.56 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 00:47:57 -0700 (PDT) From: Daniel Lezcano To: kgene.kim@samsung.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, t.figa@samsung.com, linaro-kernel@lists.linaro.org, rjw@rjwysocki.net Subject: [PATCH 08/17] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier Date: Fri, 4 Apr 2014 09:47:54 +0200 Message-Id: <1396597683-6969-9-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396597683-6969-1-git-send-email-daniel.lezcano@linaro.org> References: <1396597683-6969-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org 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: , We make the cpuidle code less arch dependent. Signed-off-by: Daniel Lezcano --- arch/arm/mach-exynos/cpuidle.c | 6 ------ arch/arm/mach-exynos/pm.c | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 4b090cf..c63ad05 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -18,7 +18,6 @@ #include #include -#include #include #include #include @@ -94,11 +93,6 @@ static int exynos_enter_core0_aftr(struct cpuidle_device *dev, cpu_pm_enter(); cpu_suspend(0, idle_finisher); - -#ifdef CONFIG_SMP - if (!soc_is_exynos5250()) - scu_enable(S5P_VA_SCU); -#endif cpu_pm_exit(); /* diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index b2a075e..f43a004 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c @@ -386,6 +386,9 @@ static int exynos_cpu_pm_notifier(struct notifier_block *self, break; case CPU_PM_EXIT: +#ifdef CONFIG_SMP + scu_enable(S5P_VA_SCU); +#endif exynos_cpu_restore_register(); break; }