From patchwork Tue Apr 8 12:19:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27945 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2B65220553 for ; Tue, 8 Apr 2014 12:19:45 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id jy13sf2481803veb.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=GpJ4M5pND9ajNGjWFLp9VDiOXjdnkV4QeAFSfrMZJCY=; b=BIvQmZGC1bJhm3eQXva7vocZ4WMxqT0vz9zm3uNBBFa61VJ+q2CU8w+BtY2csft/gi zAKhv9GtAQ+qFDzd4ghS+1OAfAiS52wWLMh7fvoWaxyjFbjiOCS3oldYl5Hm5IuapEhE L+cvoxnVJ/nHnvVoZOkWXM3iTkmzuVfkYfXCbizp4JVweCvp9U/Gvas6c1JwHYCkQa6p cunOKSf4GV/9PaPtfHYGQtM/IHkxSqmEwhadP55b2vpmgpB1ZKv2VaQ9XH/yAJSfxKXx wPJsP0ikPe/ZSRBc8TTvrDrDCyPsjx79VjsoD9CoFnDGF+BS5Iz6D9mofp6+056ioXu2 9YoA== X-Gm-Message-State: ALoCoQlywp9fvQdVmw159pB747rSBQT5Oo0zdch4nerEN49HNVRtMfPDBOBNj9FJPW76p0Icm9Z2 X-Received: by 10.58.225.197 with SMTP id rm5mr1511050vec.5.1396959584906; Tue, 08 Apr 2014 05:19:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.245 with SMTP id u108ls182815qge.79.gmail; Tue, 08 Apr 2014 05:19:44 -0700 (PDT) X-Received: by 10.52.161.168 with SMTP id xt8mr2487782vdb.23.1396959584776; Tue, 08 Apr 2014 05:19:44 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id pd4si356745veb.105.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.177 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.177; Received: by mail-ve0-f177.google.com with SMTP id sa20so655675veb.36 for ; Tue, 08 Apr 2014 05:19:44 -0700 (PDT) X-Received: by 10.52.6.162 with SMTP id c2mr2521863vda.6.1396959584607; Tue, 08 Apr 2014 05:19:44 -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 v8csp240632vcv; Tue, 8 Apr 2014 05:19:44 -0700 (PDT) X-Received: by 10.66.161.38 with SMTP id xp6mr4063191pab.145.1396959583743; 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.43; Tue, 08 Apr 2014 05:19:43 -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 S1756662AbaDHMTm (ORCPT + 9 others); Tue, 8 Apr 2014 08:19:42 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:43822 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756636AbaDHMTk (ORCPT ); Tue, 8 Apr 2014 08:19:40 -0400 Received: by mail-wg0-f48.google.com with SMTP id l18so842244wgh.31 for ; Tue, 08 Apr 2014 05:19:39 -0700 (PDT) X-Received: by 10.194.104.197 with SMTP id gg5mr3658681wjb.26.1396959579638; Tue, 08 Apr 2014 05:19:39 -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.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:19:39 -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 09/17] ARM: exynos: cpuidle: Remove ifdef for scu_enable Date: Tue, 8 Apr 2014 14:19:31 +0200 Message-Id: <1396959579-18268-10-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.177 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: , The scu_enable function is already a noop in the scu's header file is CONFIG_SMP=n, so no need to use these macros in the code. Signed-off-by: Daniel Lezcano Reviewed-by: Viresh Kumar Reviewed-by: Bartlomiej Zolnierkiewicz --- arch/arm/mach-exynos/pm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index aba577f..9773a00 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c @@ -244,7 +244,7 @@ static void exynos_pm_resume(void) s3c_pm_do_restore_core(exynos_core_save, ARRAY_SIZE(exynos_core_save)); - if (IS_ENABLED(CONFIG_SMP) && !soc_is_exynos5250()) + if (!soc_is_exynos5250()) scu_enable(S5P_VA_SCU); early_wakeup: @@ -336,10 +336,8 @@ 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;