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: 28143 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CF52020671 for ; Thu, 10 Apr 2014 09:56:05 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j7sf9365813qaq.2 for ; Thu, 10 Apr 2014 02:56:05 -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=2LHg4FMyX7MoYTbQAB4dNgDnkbaAKGOctp7Y9wYQ+Cw=; b=JWxcJtSGtOLxgOy8Tne3AvlSI8Bwb+NwkLpR/e3y839hfLheYI/wp/e2EykNPxH/w9 gM63W0kffxA0r5MLSSUfEXgmAuyKLHEc8J72whyKVLQnZMuvca989eelxqBJyttWu6r7 sxl0PPgUiJJmYUMOzp0VI0jdmWkkGfpNKbWBfXGsreMppCfeX6ykZaW4VT0BaVecmsXu E7AHPwzmnYU2tGSJ5o1dUpy6qfBhuL1J9e2gMy+r+3e1N4XdR8RGo0kVwohHlanIBuwx Suf5pEjxBNEkPgGdANUfAPIpiqR9xtCN1BsViR4MvARcbSkIw1RnFlXDNZOoHiw9wwlH 8+Mw== X-Gm-Message-State: ALoCoQlizxKW0WaOw1tyTRZFAmQ3m5JcjsoHK05K7TnlYI/kIPIPVQovQRUxDx3ywuFfkKn4EYe8 X-Received: by 10.224.6.198 with SMTP id a6mr7617556qaa.6.1397123765665; Thu, 10 Apr 2014 02:56:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.17.3 with SMTP id 3ls1083736qgc.83.gmail; Thu, 10 Apr 2014 02:56:05 -0700 (PDT) X-Received: by 10.58.181.170 with SMTP id dx10mr123351vec.25.1397123765573; Thu, 10 Apr 2014 02:56:05 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id ys15si604954vcb.178.2014.04.10.02.56.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:56:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id lf12so3122797vcb.39 for ; Thu, 10 Apr 2014 02:56:05 -0700 (PDT) X-Received: by 10.52.23.97 with SMTP id l1mr11302097vdf.11.1397123765499; Thu, 10 Apr 2014 02:56:05 -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 ib8csp45042vcb; Thu, 10 Apr 2014 02:56:05 -0700 (PDT) X-Received: by 10.66.228.37 with SMTP id sf5mr18708005pac.19.1397123764811; Thu, 10 Apr 2014 02:56:04 -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.04; Thu, 10 Apr 2014 02:56:04 -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 S965611AbaDJJ4C (ORCPT + 9 others); 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-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: 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.220.180 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: , 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);