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: 3961321 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 38E38BFF02 for ; Thu, 10 Apr 2014 09:56:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 66CC520632 for ; Thu, 10 Apr 2014 09:56:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CA3520630 for ; Thu, 10 Apr 2014 09:56:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965605AbaDJJ4A (ORCPT ); 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rQ3QwQeWywo2Th1js2dHUQCHhWy9Ml9Z0muEbYU/cxw=; b=aicAQvedM2sKfVMPbybmBrXf/O7Zue17XYF4IzdUyza2ut6bjJfcr/kqcywQKVn1Ci BqQvO3mh7BAbVDtDuKQhafHsGC7nr3m5ayQI1pP2+4HVr9hqrCRxtH8/7RHKIBIvBJAS igHuaXfVlj1Gbsx+nP7ewvexp1S5vF8iW9Kkrb7+zfMS247bwIYCJhT5NKPB/wBdW6yG fZew+Uvi8k40tbEfR6DdeF9HbqztoDsZBUKCM59s+zKrw0fXi0HxQ/2Rs0Mh8N0pAV3k ZTSd9bzINYi7ZM10no9SGN3LdzblDKpc/1X0/3mzsVqy1ugNP229EHeSjQttk0QgXGgG 7Xsg== X-Gm-Message-State: ALoCoQnbjdMNNVAlkzpRH25FezSLZ2PTeRVIa8Tgz7g13kSE2lpEHA0LQaDIYYTSuyXlcN4AA97s 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: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;