From patchwork Thu May 16 09:28:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 16992 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D84B72391B for ; Thu, 16 May 2013 09:33:20 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 7sf3894002qeb.6 for ; Thu, 16 May 2013 02:32:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=xjghsNzm6/N9aNvHY/PaCFldyLWcvSUQKPwVQyht0zI=; b=EzboHYiMHR/SZr7GcA+CzujmflQX5fZr3W0/TgrYGDPLoVkL0I3UvH1/h7fInx/MG7 mEPiTzMvT77y6yT6xA7nsjVDvCQ06RK/sCxr44Gw0/QwJsNWim87hPGQcfZo4EPCKrXj /ebbUuhnps4ydiqp3H2IvNizp4zE6XKzihHpLFD2yZUcMfRvLs7uxH06kmdPtzftMq1w +Z0ps6M/RGmtgsGK/jnKES2RP7h+eFA5UD+Iy3h6/MZdzvDpwBn+qAR4aIohNPcjEZxK eZpMr6fydOiX3W9hctvq1tMk/BnPDSkj6vp7C9fI+fW1zI55MfpkarGK+eaIIlVwWRAL u22w== X-Received: by 10.224.59.205 with SMTP id m13mr25436383qah.7.1368696762102; Thu, 16 May 2013 02:32:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.15.66 with SMTP id v2ls1120817qec.98.gmail; Thu, 16 May 2013 02:32:42 -0700 (PDT) X-Received: by 10.220.187.71 with SMTP id cv7mr18134895vcb.28.1368696761957; Thu, 16 May 2013 02:32:41 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id ty3si3522219vec.0.2013.05.16.02.32.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 02:32:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id id13so2581636vcb.23 for ; Thu, 16 May 2013 02:32:41 -0700 (PDT) X-Received: by 10.58.247.130 with SMTP id ye2mr27386405vec.35.1368696761769; Thu, 16 May 2013 02:32:41 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp56074vcs; Thu, 16 May 2013 02:32:41 -0700 (PDT) X-Received: by 10.66.222.69 with SMTP id qk5mr8989580pac.71.1368696760711; Thu, 16 May 2013 02:32:40 -0700 (PDT) Received: from mail-da0-x233.google.com (mail-da0-x233.google.com [2607:f8b0:400e:c00::233]) by mx.google.com with ESMTPS id dj6si4395619pad.279.2013.05.16.02.32.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 02:32:40 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::233 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=2607:f8b0:400e:c00::233; Received: by mail-da0-f51.google.com with SMTP id h15so1540883dan.38 for ; Thu, 16 May 2013 02:32:40 -0700 (PDT) X-Received: by 10.68.105.164 with SMTP id gn4mr42216214pbb.42.1368696760320; Thu, 16 May 2013 02:32:40 -0700 (PDT) Received: from localhost ([106.197.193.133]) by mx.google.com with ESMTPSA id t1sm6858346pab.12.2013.05.16.02.32.32 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 May 2013 02:32:39 -0700 (PDT) From: Viresh Kumar To: toddpoynor@google.com Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com, android-kernel@googlegroups.com, viresh.kumar@linaro.org Subject: [PATCH 15/16] cpufreq: interactive: Move definition of cpufreq_gov_interactive downwards Date: Thu, 16 May 2013 14:58:53 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnziWhfHOvSWq4peJb5dsiqXUnow5+Vt3VGxSNLXEXn/jR/Eod+SBwuNr0OvB3eXs96PUiV X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This moves definition of cpufreq_gov_interactive towards the bottom of file, so that we don't have to add prototype of cpufreq_governor_interactive() in the beginning of file. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_interactive.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index baa5638..8821873 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -115,19 +115,6 @@ static int timer_slack_val = DEFAULT_TIMER_SLACK; static bool io_is_busy; -static int cpufreq_governor_interactive(struct cpufreq_policy *policy, - unsigned int event); - -#ifndef CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE -static -#endif -struct cpufreq_governor cpufreq_gov_interactive = { - .name = "interactive", - .governor = cpufreq_governor_interactive, - .max_transition_latency = 10000000, - .owner = THIS_MODULE, -}; - static void cpufreq_interactive_timer_resched( struct cpufreq_interactive_cpuinfo *pcpu) { @@ -1083,6 +1070,16 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy, return 0; } +#ifndef CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE +static +#endif +struct cpufreq_governor cpufreq_gov_interactive = { + .name = "interactive", + .governor = cpufreq_governor_interactive, + .max_transition_latency = 10000000, + .owner = THIS_MODULE, +}; + static void cpufreq_interactive_nop_timer(unsigned long data) { }