From patchwork Fri Apr 4 07:47:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 27770 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D8E4020369 for ; Fri, 4 Apr 2014 07:47:54 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rp16sf11067479pbb.1 for ; Fri, 04 Apr 2014 00:47:54 -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=BF3XMj6DGfUgAPWgAWZUo4dea3LbURgO/+jwwm5rK4M=; b=fVG9gTb4GaPXVVpqdAsigeFilP0eQ6zExPIR5juH+AG2OzeN/k6R9Nx1DkWXI3l/gp qAvwtr0gfsxT4/2okc2snrUTjHck3HI2pNiGcfgPcmMY7wP8hq6BhBg8GCW3WM1A8XdD dMvtgpKdmeseSJTMSVy7Jhi/9UeWtg3Or4k9HIMfGXDv4jYdFcrzqG6+2vmRIy3ydT7M YGtNeFM4wltxsvFa838Fin69qhpuWhmx+bp6oFfvD2+AZaHGUg51FKHRazs6hWLs7ffV n3s5Z0GqnbKqA1Wm/RvcBmbHrOLDsDKzG4U/tF3kw8r4xwuSx2Q9/VC5rnCyeHEhrrA9 5CIg== X-Gm-Message-State: ALoCoQmCNor7OHnPuCqQcw3BmwK5e0f05zoqithhfJ2zwd/CzWd4wrRt75Na+nqyX8+c3QAfBjDh X-Received: by 10.66.66.196 with SMTP id h4mr6724068pat.22.1396597674147; Fri, 04 Apr 2014 00:47:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.202 with SMTP id e68ls399582qgf.12.gmail; Fri, 04 Apr 2014 00:47:54 -0700 (PDT) X-Received: by 10.221.34.7 with SMTP id sq7mr4537928vcb.5.1396597674051; Fri, 04 Apr 2014 00:47:54 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id sn5si1668874vdc.29.2014.04.04.00.47.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 00:47:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so2889180vcb.30 for ; Fri, 04 Apr 2014 00:47:54 -0700 (PDT) X-Received: by 10.221.28.202 with SMTP id rv10mr7184157vcb.10.1396597673976; Fri, 04 Apr 2014 00:47:53 -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.12.8 with SMTP id v8csp92794vcv; Fri, 4 Apr 2014 00:47:53 -0700 (PDT) X-Received: by 10.68.163.3 with SMTP id ye3mr13352325pbb.78.1396597673006; Fri, 04 Apr 2014 00:47:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iw3si4270530pac.96.2014.04.04.00.47.52; Fri, 04 Apr 2014 00:47:52 -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 S1752097AbaDDHrv (ORCPT + 9 others); Fri, 4 Apr 2014 03:47:51 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:62221 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750755AbaDDHru (ORCPT ); Fri, 4 Apr 2014 03:47:50 -0400 Received: by mail-wi0-f179.google.com with SMTP id z2so689737wiv.0 for ; Fri, 04 Apr 2014 00:47:49 -0700 (PDT) X-Received: by 10.194.205.35 with SMTP id ld3mr17493184wjc.82.1396597669076; Fri, 04 Apr 2014 00:47:49 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-451-172.w83-205.abo.wanadoo.fr. [83.205.74.172]) by mx.google.com with ESMTPSA id t1sm3028163wia.1.2014.04.04.00.47.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 00:47: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, rjw@rjwysocki.net Subject: [PATCH 01/17] ARM: exynos: cpuidle: Prevent forward declaration Date: Fri, 4 Apr 2014 09:47:47 +0200 Message-Id: <1396597683-6969-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396597683-6969-1-git-send-email-daniel.lezcano@linaro.org> References: <1396597683-6969-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.171 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: , Move the structure below the 'exynos4_enter_lowpower' function so no more need of forward declaration. Signed-off-by: Daniel Lezcano --- arch/arm/mach-exynos/cpuidle.c | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index f57cb91..bd2142a 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -60,30 +60,8 @@ #define PWR_CTRL2_CORE2_UP_RATIO (1 << 4) #define PWR_CTRL2_CORE1_UP_RATIO (1 << 0) -static int exynos4_enter_lowpower(struct cpuidle_device *dev, - struct cpuidle_driver *drv, - int index); - static DEFINE_PER_CPU(struct cpuidle_device, exynos4_cpuidle_device); -static struct cpuidle_driver exynos4_idle_driver = { - .name = "exynos4_idle", - .owner = THIS_MODULE, - .states = { - [0] = ARM_CPUIDLE_WFI_STATE, - [1] = { - .enter = exynos4_enter_lowpower, - .exit_latency = 300, - .target_residency = 100000, - .flags = CPUIDLE_FLAG_TIME_VALID, - .name = "C1", - .desc = "ARM power down", - }, - }, - .state_count = 2, - .safe_state_index = 0, -}; - /* Ext-GIC nIRQ/nFIQ is the only wakeup source in AFTR */ static void exynos4_set_wakeupmask(void) { @@ -214,6 +192,24 @@ static void __init exynos5_core_down_clk(void) __raw_writel(tmp, EXYNOS5_PWR_CTRL2); } +static struct cpuidle_driver exynos4_idle_driver = { + .name = "exynos4_idle", + .owner = THIS_MODULE, + .states = { + [0] = ARM_CPUIDLE_WFI_STATE, + [1] = { + .enter = exynos4_enter_lowpower, + .exit_latency = 300, + .target_residency = 100000, + .flags = CPUIDLE_FLAG_TIME_VALID, + .name = "C1", + .desc = "ARM power down", + }, + }, + .state_count = 2, + .safe_state_index = 0, +}; + static int exynos_cpuidle_probe(struct platform_device *pdev) { int cpu_id, ret;