From patchwork Fri Mar 21 05:34:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 26786 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6166220143 for ; Fri, 21 Mar 2014 05:39:40 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id fp1sf4443879pdb.8 for ; Thu, 20 Mar 2014 22:39:39 -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: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=mG5ZXsXgcCV3gk3AEO0hhzQZliPaff9jwffdpKy9yts=; b=QjxcoL9ERMAEiQCxsRKNIGIfuDESYPWqr2vyPIbztGg+61VWkzVPd4knLK39LYZWzC 8apj7E++CT/YtEeoN0TFvU7F164TlWYcjhGH58It65F50MWJRTk9xJvx9LiBF+c4Bna7 m7tjrxEYNT8TagEIfVqlQpHhZdKX/KFLlMMWEKaGaQ3eA/ynjWQYGyLkm2mXwLYF6hSB DDWYBRUV1h7lQeOEHxP7G5YjpFRtzroeslZZ7IVEO7AahR1h/08I1fgptfsBkp3sGFrA iQ/+Zj1gZuxnFKb+XIsSkBO0fE1Msok5vmAn8JjFM77j0G7VVCO20fSPhoUOpbq3JhWJ WnxA== X-Gm-Message-State: ALoCoQmu1yVF5VV4QDT0rF4Npx564vXY5iHcHX+l8X/kZ+QNo10Bs/0vO4oLEU5SPRmobyPTJF7N X-Received: by 10.66.102.8 with SMTP id fk8mr19457770pab.24.1395380379567; Thu, 20 Mar 2014 22:39:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.14 with SMTP id 14ls548775qgs.58.gmail; Thu, 20 Mar 2014 22:39:39 -0700 (PDT) X-Received: by 10.220.44.20 with SMTP id y20mr24222vce.60.1395380379465; Thu, 20 Mar 2014 22:39:39 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id d12si924418vco.83.2014.03.20.22.39.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 22:39:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 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.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so2063876veb.33 for ; Thu, 20 Mar 2014 22:39:39 -0700 (PDT) X-Received: by 10.58.238.35 with SMTP id vh3mr35867790vec.16.1395380379158; Thu, 20 Mar 2014 22:39:39 -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.78.9 with SMTP id i9csp5851vck; Thu, 20 Mar 2014 22:39:38 -0700 (PDT) X-Received: by 10.69.17.230 with SMTP id gh6mr10670127pbd.0.1395380378343; Thu, 20 Mar 2014 22:39:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zm8si2942407pac.153.2014.03.20.22.39.37; Thu, 20 Mar 2014 22:39:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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 S1759480AbaCUFiC (ORCPT + 11 others); Fri, 21 Mar 2014 01:38:02 -0400 Received: from mail-we0-f170.google.com ([74.125.82.170]:33215 "EHLO mail-we0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759465AbaCUFiA (ORCPT ); Fri, 21 Mar 2014 01:38:00 -0400 Received: by mail-we0-f170.google.com with SMTP id w61so1274731wes.29 for ; Thu, 20 Mar 2014 22:37:59 -0700 (PDT) X-Received: by 10.194.109.6 with SMTP id ho6mr37402066wjb.21.1395380279199; Thu, 20 Mar 2014 22:37:59 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id di9sm1717750wid.6.2014.03.20.22.37.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 20 Mar 2014 22:37:58 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, srivatsa.bhat@linux.vnet.ibm.com, Viresh Kumar Subject: [PATCH V4 3/3] cpufreq: Make cpufreq_notify_transition & cpufreq_notify_post_transition static Date: Fri, 21 Mar 2014 11:04:32 +0530 Message-Id: <827ab1ca9caaa50ed672c5e01806314c06ad8db8.1395379422.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.174 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: , cpufreq_notify_transition() and cpufreq_notify_post_transition() shouldn't be called directly by cpufreq drivers anymore and so these should be marked static. Signed-off-by: Viresh Kumar Reviewed-by: Srivatsa S. Bhat --- drivers/cpufreq/cpufreq.c | 6 ++---- include/linux/cpufreq.h | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index b63e7e4..7b1feff 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -331,16 +331,15 @@ static void __cpufreq_notify_transition(struct cpufreq_policy *policy, * function. It is called twice on all CPU frequency changes that have * external effects. */ -void cpufreq_notify_transition(struct cpufreq_policy *policy, +static void cpufreq_notify_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, unsigned int state) { for_each_cpu(freqs->cpu, policy->cpus) __cpufreq_notify_transition(policy, freqs, state); } -EXPORT_SYMBOL_GPL(cpufreq_notify_transition); /* Do post notifications when there are chances that transition has failed */ -void cpufreq_notify_post_transition(struct cpufreq_policy *policy, +static void cpufreq_notify_post_transition(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) { cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); @@ -351,7 +350,6 @@ void cpufreq_notify_post_transition(struct cpufreq_policy *policy, cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); } -EXPORT_SYMBOL_GPL(cpufreq_notify_post_transition); void cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 263173d..826830b 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -338,10 +338,6 @@ static inline void cpufreq_resume(void) {} int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); -void cpufreq_notify_transition(struct cpufreq_policy *policy, - struct cpufreq_freqs *freqs, unsigned int state); -void cpufreq_notify_post_transition(struct cpufreq_policy *policy, - struct cpufreq_freqs *freqs, int transition_failed); void cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs); void cpufreq_freq_transition_end(struct cpufreq_policy *policy,