From patchwork Fri Apr 11 10:40:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 28259 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6E91620822 for ; Fri, 11 Apr 2014 10:40:22 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id kq14sf17540275pab.6 for ; Fri, 11 Apr 2014 03:40:21 -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=Hj2RSyN/SaS75x+MWpHF3ggsTXQwWUzpRR3ictjBI2I=; b=LRN8YEZV7hZ+45ROa4nhIvaUv1jVt36mR3i1a7Cyd0jKCxPiiYZgx0iayALL314aqf 4O/4Bv8UtkD1QoCjlglhXgd0xRb/UT1EQlY8e8C4jaeV+Vv6pWnbimd+E86Ahy+h+HUi FSvksn+ktQYtJxeeVZSUW+jnzNMLb4cuQKKObUMQ8Cj0HKZmmVeEuFau25WBx2sCAORy pSiOlGiepI+/++9COh/wBMnX33aVd3JhJJb87+2XG+igeS7qKzvGGjutjRXe/1mjjebN R5IVUKn8O37UvVn+r7Jfmv/Z6xvP+q24yeHgp6d1gbpWVCNXN+qkEZhMPojZecSQvxZ/ JT6A== X-Gm-Message-State: ALoCoQksoeNTQW41WH9osgob6O0e7Fmv58JwBfaw4eO2n6mRuKO4uS46xl0rnUSO8tFIi3sseM3P X-Received: by 10.66.137.8 with SMTP id qe8mr11042225pab.46.1397212821710; Fri, 11 Apr 2014 03:40:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.34 with SMTP id k31ls433557qgf.87.gmail; Fri, 11 Apr 2014 03:40:21 -0700 (PDT) X-Received: by 10.52.119.197 with SMTP id kw5mr16011046vdb.5.1397212821593; Fri, 11 Apr 2014 03:40:21 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id si3si1232621vcb.28.2014.04.11.03.40.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 03:40:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.179 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.179; Received: by mail-ve0-f179.google.com with SMTP id db12so4705026veb.10 for ; Fri, 11 Apr 2014 03:40:21 -0700 (PDT) X-Received: by 10.58.1.97 with SMTP id 1mr6400245vel.23.1397212821299; Fri, 11 Apr 2014 03:40:21 -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 ib8csp46115vcb; Fri, 11 Apr 2014 03:40:20 -0700 (PDT) X-Received: by 10.66.141.231 with SMTP id rr7mr26241923pab.41.1397212820545; Fri, 11 Apr 2014 03:40:20 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xy8si3963775pab.160.2014.04.11.03.40.20; Fri, 11 Apr 2014 03:40:20 -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 S934720AbaDKKkQ (ORCPT + 8 others); Fri, 11 Apr 2014 06:40:16 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:65376 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757225AbaDKKkM (ORCPT ); Fri, 11 Apr 2014 06:40:12 -0400 Received: by mail-wg0-f46.google.com with SMTP id b13so5246320wgh.5 for ; Fri, 11 Apr 2014 03:40:11 -0700 (PDT) X-Received: by 10.194.20.229 with SMTP id q5mr813924wje.86.1397212811701; Fri, 11 Apr 2014 03:40:11 -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 eq8sm3683033wib.16.2014.04.11.03.40.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 03:40:10 -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, rjw@rjwysocki.net Subject: [PATCH V5 11/20] ARM: exynos: cpuidle: Pass wakeup mask parameter to function Date: Fri, 11 Apr 2014 12:40:06 +0200 Message-Id: <1397212815-16068-12-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397212815-16068-1-git-send-email-daniel.lezcano@linaro.org> References: <1397212815-16068-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.179 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 95826c6..169db74 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);