From patchwork Thu Apr 10 09:55:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3961351 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E1F879F336 for ; Thu, 10 Apr 2014 09:56:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1AC7620635 for ; Thu, 10 Apr 2014 09:56:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A99020630 for ; Thu, 10 Apr 2014 09:56:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965611AbaDJJ4C (ORCPT ); Thu, 10 Apr 2014 05:56:02 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:62037 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965630AbaDJJzu (ORCPT ); Thu, 10 Apr 2014 05:55:50 -0400 Received: by mail-wi0-f173.google.com with SMTP id z2so10367685wiv.6 for ; Thu, 10 Apr 2014 02:55:48 -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=A4O1llQjHCeUJjkts4oIH9J0UMUTuGu91nDOF/rvhtU=; b=H4UxZbaDJqe9Gzm+3A1KeOrCNhMzij3p1WbxxwXZ/v2j16sjQT85xqTPJ/sVCbkp+/ k9aDllFKgFP7vBWuDqDAai7Z7ohTrKVD7urSRKD6JbOt40VuCdgth9gBAs7xb0qbJEAb 8HxvSj5eSFooaAWu2284Ap/4bLiVqKQug80d+Xxb3/rLIs5y0W8kmuBSxeVtPWkzLE84 FDRhO2MEOB6ayvABBEILJl/V8cVl8VcE3ZeEZ+Wj9qAQLONEdvhtHw4mbn+6fWhIFp0X XDsD0NPDz3UqM2H592+zDmisgHjfWkTPI6CFKY3qSfQ8eMhL3aR8osYyZbotEZEWAYKX dpfA== X-Gm-Message-State: ALoCoQmYyCEBWrUt6pMsRalwejTr+NxujhJtW5+Wuk9Bnis2tv6b6JyBi82JDfs9EjdXnRMsoYtc X-Received: by 10.194.78.77 with SMTP id z13mr967203wjw.64.1397123748918; Thu, 10 Apr 2014 02:55:48 -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.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:55:48 -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 11/20] ARM: exynos: cpuidle: Pass wakeup mask parameter to function Date: Thu, 10 Apr 2014 11:55:42 +0200 Message-Id: <1397123751-1957-12-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 Pass the wakeup mask to 'exynos_set_wakeupmask' as this function could be used for different idle states with different mask. Signed-off-by: Daniel Lezcano --- arch/arm/mach-exynos/cpuidle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 97a441f..ddbb2c5 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -40,14 +40,14 @@ #define S5P_CHECK_AFTR 0xFCBA0D10 /* Ext-GIC nIRQ/nFIQ is the only wakeup source in AFTR */ -static void exynos_set_wakeupmask(void) +static void exynos_set_wakeupmask(long mask) { - __raw_writel(0x0000ff3e, S5P_WAKEUP_MASK); + __raw_writel(mask, S5P_WAKEUP_MASK); } static int idle_finisher(unsigned long flags) { - exynos_set_wakeupmask(); + exynos_set_wakeupmask(0x0000ff3e); __raw_writel(virt_to_phys(s3c_cpu_resume), REG_DIRECTGO_ADDR); __raw_writel(S5P_CHECK_AFTR, REG_DIRECTGO_FLAG);