From patchwork Fri Apr 4 13:43:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27825 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 034AC20369 for ; Fri, 4 Apr 2014 13:43:11 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wo20sf10656413obc.6 for ; Fri, 04 Apr 2014 06:43:11 -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=WiCnzuKqn8/IUV/xsuIgA49m68B4q6JUVKL2B3mAwh4=; b=AOma8na/iu6eoFVkiKIc8PQ2ninqb2vV9SXBaFzLChgRDmJb3LVzqqj61jh8ipsIO2 8bo8bzANSuiCdpkLiPL1Z7iDl7Jmgbc4K1wCxan8cnBS/23hqbb1PVvVGpS829dXAGdr 1hVwHN3A9Ha1h3gvlV4dMvFc/enWDpi/sj3uDIAgvb5jUm7Z/G3AW7AckrUd90UYoVB6 WiOgWXIAgAnLVpd4f7554Z1tJeRV6Di4eyhxdrMUKuF50GBcolsIEzDwMmHr3wVWfd8h QMEnJsIeEl5uqUhNKAvziod3GmtR3J38DiAuoAPejMmKOqmTcFoBZumfC4DO/bGZUNo7 MYFQ== X-Gm-Message-State: ALoCoQmpKCCgNp5wmykIQbs1oEG2d3kOYdWeYU2NK0Qd9mrIFktRogWly9BjT1a8UZCFYNEKZcWv X-Received: by 10.50.73.74 with SMTP id j10mr2039484igv.1.1396618991542; Fri, 04 Apr 2014 06:43:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.46.33 with SMTP id j30ls665265qga.67.gmail; Fri, 04 Apr 2014 06:43:11 -0700 (PDT) X-Received: by 10.58.243.72 with SMTP id ww8mr126441vec.49.1396618991414; Fri, 04 Apr 2014 06:43:11 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id z14si1777560vcf.100.2014.04.04.06.43.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 06:43:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.179 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.179; Received: by mail-ve0-f179.google.com with SMTP id db12so1440760veb.38 for ; Fri, 04 Apr 2014 06:43:11 -0700 (PDT) X-Received: by 10.53.11.37 with SMTP id ef5mr96858vdd.62.1396618991329; Fri, 04 Apr 2014 06:43:11 -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 v8csp115333vcv; Fri, 4 Apr 2014 06:43:10 -0700 (PDT) X-Received: by 10.69.1.69 with SMTP id be5mr15277516pbd.126.1396618989617; Fri, 04 Apr 2014 06:43:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tk5si4616090pbc.252.2014.04.04.06.43.09; Fri, 04 Apr 2014 06:43:09 -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 S1752814AbaDDNnI (ORCPT + 9 others); Fri, 4 Apr 2014 09:43:08 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:42942 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752774AbaDDNnH (ORCPT ); Fri, 4 Apr 2014 09:43:07 -0400 Received: by mail-we0-f174.google.com with SMTP id t60so3507158wes.33 for ; Fri, 04 Apr 2014 06:43:06 -0700 (PDT) X-Received: by 10.194.161.168 with SMTP id xt8mr20218607wjb.35.1396618986628; Fri, 04 Apr 2014 06:43:06 -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 cu6sm2845053wjb.8.2014.04.04.06.43.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 06:43:05 -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 V2 08/17] ARM: exynos: cpuidle: Move scu_enable in the cpu_pm notifier Date: Fri, 4 Apr 2014 15:43:00 +0200 Message-Id: <1396618989-2897-9-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396618989-2897-1-git-send-email-daniel.lezcano@linaro.org> References: <1396618989-2897-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.179 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;