From patchwork Thu Apr 10 09:55:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 28141 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2380920671 for ; Thu, 10 Apr 2014 09:56:03 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id fp1sf10797964pdb.4 for ; Thu, 10 Apr 2014 02:56:02 -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=zEbBfrGJEQxa0lXRUCYMx1lJt7Q5fPT2OTLbw+OqshI=; b=RuVLH3NzhoVhkVAmA9rrH6X9EjRXLlkNj8PZ3NnkQOU0zEZwUITl/IGoHUjbz6x7AJ MGb7oHfrFdXVImljSKsev3W0gxeqhrd4mE2PXQFlc4TZyscCq/muLYROeI3DA8etfNIn BwP0Lj6TY+oWZqjf9JdVC32bKfmgHiGr7xaGCsu8r8bSP24kDbx23ruEHHVPBixZYVzT Pa7jXGcw1KzJUQ/78f+81H1doMXBd3D6IyaBsB2HqMHUBYQBX+VT+ZBSHcaemA4Gdl8Z 83+H7lh+ySR+hkm1hJ3l23ShZ3PzZ0ZKpaAj/PEHqFOukHHHdHAeACI3F6B+Fe98yVV4 6D9w== X-Gm-Message-State: ALoCoQnTrUJmAhk2strRL0GFz/SYdZx7t1L0YNRZ67Ln1bt5jB6HomJNMlO8JnEb3vICqyvjxtm7 X-Received: by 10.66.233.8 with SMTP id ts8mr7279496pac.38.1397123762404; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.177 with SMTP id t46ls1115186qgt.16.gmail; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) X-Received: by 10.52.78.231 with SMTP id e7mr555651vdx.28.1397123762200; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id jl10si606976veb.123.2014.04.10.02.56.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:56:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id id10so3117004vcb.26 for ; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) X-Received: by 10.58.219.233 with SMTP id pr9mr14116366vec.10.1397123762111; Thu, 10 Apr 2014 02:56:02 -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.221.72 with SMTP id ib8csp45037vcb; Thu, 10 Apr 2014 02:56:01 -0700 (PDT) X-Received: by 10.68.162.1 with SMTP id xw1mr18508908pbb.128.1397123761301; Thu, 10 Apr 2014 02:56:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xe4si1873677pbc.456.2014.04.10.02.56.00; Thu, 10 Apr 2014 02:56: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 S965147AbaDJJz7 (ORCPT + 9 others); Thu, 10 Apr 2014 05:55:59 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:46291 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965605AbaDJJzp (ORCPT ); Thu, 10 Apr 2014 05:55:45 -0400 Received: by mail-wg0-f48.google.com with SMTP id l18so3683701wgh.31 for ; Thu, 10 Apr 2014 02:55:44 -0700 (PDT) X-Received: by 10.180.78.225 with SMTP id e1mr33360167wix.17.1397123744580; Thu, 10 Apr 2014 02:55:44 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-377-242.w86-199.abo.wanadoo.fr. [86.199.232.242]) by mx.google.com with ESMTPSA id hu7sm15690125wib.10.2014.04.10.02.55.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:55:43 -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, b.zolnierkie@samsung.com, sachin.kamat@linaro.org, viresh.kumar@linaro.org, rjw@rjwysocki.net Subject: [PATCH V4 08/20] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier Date: Thu, 10 Apr 2014 11:55:39 +0200 Message-Id: <1397123751-1957-9-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397123751-1957-1-git-send-email-daniel.lezcano@linaro.org> References: <1397123751-1957-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.181 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 Reviewed-by: Viresh Kumar Reviewed-by: Bartlomiej Zolnierkiewicz Reviewed-by: Tomasz Figa --- arch/arm/mach-exynos/cpuidle.c | 6 ------ arch/arm/mach-exynos/pm.c | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 7f1f4ef..ce31004 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 @@ -93,11 +92,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 67d75fe..aba577f 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c @@ -336,6 +336,10 @@ static int exynos_cpu_pm_notifier(struct notifier_block *self, case CPU_PM_EXIT: if (cpu == 0) { +#ifdef CONFIG_SMP + if (!soc_is_exynos5250()) + scu_enable(S5P_VA_SCU); +#endif exynos_cpu_restore_register(); } break;