From patchwork Thu Apr 10 09:55:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 28140 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f72.google.com (mail-qg0-f72.google.com [209.85.192.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4535621308 for ; Thu, 10 Apr 2014 09:56:03 +0000 (UTC) Received: by mail-qg0-f72.google.com with SMTP id q108sf6942957qgd.3 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=eJREb42EjnoWYGzPyiV86HZRkxPbTMxMMPF2yXJ5kXE=; b=CJbCf/l1LFRLUyjVo9S5Ppl0IjlWCryHzzOX+5tyoMN2IYqw6YWn7Eoltg9Xzkb4rx UrB7mLOZWiHNRwC0/aXaASmBeIJL3oRfLI4Ktw8lIR1znt0ZckXzdug0jis7YI6IUaZt x0HIPjuRZVq+ODLB90InU4nmpdYJVC7nA/i7qOCEvu6vxi9zHBOBr6epqj+RTLejMv8i 4mkJ5tkVBX/Hkv+ZwIuxgJQJupxAfsiTUh88lx5ZnePlWuN1jajurSMCGjdY92V7cYaD 0HLCkIAv9XnpIdLuDAbtf2vhyQknJz2o7KMc9p0XZm8a2yeWf+HQ2yvjfQMvO7A3B+U/ P+1A== X-Gm-Message-State: ALoCoQlDOjJEg+9rCjm8ojL4M/knrjYavxzFCGVJZJF6ted4/LLadi6M1RAhkLTBkyjZFacZMF1L X-Received: by 10.58.245.132 with SMTP id xo4mr6980200vec.11.1397123762942; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.85 with SMTP id a79ls1024633qge.72.gmail; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) X-Received: by 10.220.162.6 with SMTP id t6mr13873658vcx.12.1397123762834; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id c6si128628veo.108.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.128.170 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.170; Received: by mail-ve0-f170.google.com with SMTP id pa12so3325826veb.1 for ; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) X-Received: by 10.58.38.166 with SMTP id h6mr796135vek.22.1397123762766; 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 ib8csp45038vcb; Thu, 10 Apr 2014 02:56:02 -0700 (PDT) X-Received: by 10.67.30.168 with SMTP id kf8mr18602409pad.84.1397123761980; 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.01; Thu, 10 Apr 2014 02:56:01 -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 S965605AbaDJJ4A (ORCPT + 9 others); Thu, 10 Apr 2014 05:56:00 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:60097 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965625AbaDJJzr (ORCPT ); Thu, 10 Apr 2014 05:55:47 -0400 Received: by mail-wi0-f180.google.com with SMTP id q5so4665001wiv.7 for ; Thu, 10 Apr 2014 02:55:46 -0700 (PDT) X-Received: by 10.180.188.194 with SMTP id gc2mr2791096wic.40.1397123745978; Thu, 10 Apr 2014 02:55:45 -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.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:55:45 -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 09/20] ARM: exynos: cpuidle: Remove ifdef for scu_enable Date: Thu, 10 Apr 2014 11:55:40 +0200 Message-Id: <1397123751-1957-10-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.128.170 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 Reviewed-by: Tomasz Figa --- 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;