From patchwork Tue Apr 8 12:19:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27944 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 59A7820553 for ; Tue, 8 Apr 2014 12:19:44 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id e16sf2286757qcx.2 for ; Tue, 08 Apr 2014 05:19:44 -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=pmYJZ0xRq0Mhl5ntdTs/z5hV2qmRyO2hi0aFan03M5I=; b=F34C/KsUR32VHiQM3byMg7HyOlEFYLT2KuChsmyjkqDQttQujv/GRDRgI8078ymKLr w8BBf46oWUBgy/RrU2INAixxtSuBYNf0MlxXGHtl7KV2zHP9W8GreycNrCKJYt2qS3aE uHhmfuC3k8UhVh/typz09NRRXUhkvtLEJUqUUK9ESip/j0XjVTPJaKSzHUU9at2VAzLr VYeaA7u6pfekLfMhurB3dk4nQR94T8U2FtoYTas7Vtw9PAqC7XLKXal8SET5X+s0MVcm NBuLT9cevNoavHntHaejy4Zzj7PWaSs0GB8h4L7PcAEYQ9FePkeyknOvLXGwMT9u6oJl zgPQ== X-Gm-Message-State: ALoCoQkCTUfktb/oKpOlH/C34reHaTJ4hlROqHIJPOU+lPeuwc3LO1PzKRXS7sBmubdsDFOljtXx X-Received: by 10.236.29.51 with SMTP id h39mr1200402yha.45.1396959584168; Tue, 08 Apr 2014 05:19:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.100 with SMTP id u91ls168772qgu.74.gmail; Tue, 08 Apr 2014 05:19:44 -0700 (PDT) X-Received: by 10.58.23.6 with SMTP id i6mr2924241vef.12.1396959584059; Tue, 08 Apr 2014 05:19:44 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id jb7si361437vec.35.2014.04.08.05.19.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:19:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jx11so668880veb.17 for ; Tue, 08 Apr 2014 05:19:44 -0700 (PDT) X-Received: by 10.221.58.144 with SMTP id wk16mr1518447vcb.23.1396959583986; Tue, 08 Apr 2014 05:19:43 -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 v8csp240630vcv; Tue, 8 Apr 2014 05:19:43 -0700 (PDT) X-Received: by 10.66.66.135 with SMTP id f7mr4089855pat.22.1396959583084; Tue, 08 Apr 2014 05:19:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tx1si993786pbc.150.2014.04.08.05.19.42; Tue, 08 Apr 2014 05:19:42 -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 S1756661AbaDHMTl (ORCPT + 9 others); Tue, 8 Apr 2014 08:19:41 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:55004 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756627AbaDHMTj (ORCPT ); Tue, 8 Apr 2014 08:19:39 -0400 Received: by mail-wg0-f46.google.com with SMTP id b13so844210wgh.17 for ; Tue, 08 Apr 2014 05:19:38 -0700 (PDT) X-Received: by 10.180.14.40 with SMTP id m8mr4159042wic.31.1396959578110; Tue, 08 Apr 2014 05:19:38 -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 u1sm3000063wjx.16.2014.04.08.05.19.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:19:37 -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 V3 08/17] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier Date: Tue, 8 Apr 2014 14:19:30 +0200 Message-Id: <1396959579-18268-9-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396959579-18268-1-git-send-email-daniel.lezcano@linaro.org> References: <1396959579-18268-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.128.172 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 --- 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;