From patchwork Mon Mar 24 08:05:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 26921 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 438BB202E7 for ; Mon, 24 Mar 2014 08:06:39 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id fb1sf13886566pad.8 for ; Mon, 24 Mar 2014 01:06:38 -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=t5BStHFw0Wq/4VshcJddc4qR0x22JWcwQEEMYMuGZrA=; b=eVec+fXKWLkLWOenJl3InUWqUzCFmroRf+482IWH72t7L2s8Qw3Y73OPaCoww4MZPo 0Ry+j6Brvus+p/m5pFO2gMBsu0qjwkxhyEmpLJSCIF8y3GXQzutAN+G6LFrpIlqOxF1V kfgbCa/hzeAB54pjwJ0FbGQ3sIu8/4dOlNFmD02hI6OAGWtQIC68AV8nO1IuBjUB1vXM TI0yQhs+dVcN0u6RXg0/OAHWy0RvFu0TGbtnTYnc4E8RFrnhhX06uP/39zTczU0DNu7t 0ZpLvVV9Op/MNkZB9y2Pt7b8zHiG3d+B4O3FZ2xbLQp0OKzF1qEsl4r1pjcl5dyaSWeo sz5Q== X-Gm-Message-State: ALoCoQmPRPOQdRvpcPhR6c++5bJwpWYOzrvzBwx98xbBDc3p9Ks2FtxJUae+IuNSxkK0lKEhhy4m X-Received: by 10.66.137.105 with SMTP id qh9mr5079859pab.30.1395648398539; Mon, 24 Mar 2014 01:06:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.196 with SMTP id 62ls1543507qgt.76.gmail; Mon, 24 Mar 2014 01:06:38 -0700 (PDT) X-Received: by 10.58.126.4 with SMTP id mu4mr17396015veb.0.1395648398385; Mon, 24 Mar 2014 01:06:38 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id h18si2841860vco.88.2014.03.24.01.06.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Mar 2014 01:06:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 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.170; Received: by mail-ve0-f170.google.com with SMTP id pa12so5339713veb.29 for ; Mon, 24 Mar 2014 01:06:38 -0700 (PDT) X-Received: by 10.58.154.10 with SMTP id vk10mr49532171veb.18.1395648398314; Mon, 24 Mar 2014 01:06:38 -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 i9csp204638vck; Mon, 24 Mar 2014 01:06:37 -0700 (PDT) X-Received: by 10.68.113.68 with SMTP id iw4mr69250716pbb.119.1395648397352; Mon, 24 Mar 2014 01:06:37 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zh8si8726811pac.277.2014.03.24.01.06.34; Mon, 24 Mar 2014 01:06:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of cpufreq-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 S1752448AbaCXIGa (ORCPT + 6 others); Mon, 24 Mar 2014 04:06:30 -0400 Received: from mail-we0-f179.google.com ([74.125.82.179]:50487 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752361AbaCXIGO (ORCPT ); Mon, 24 Mar 2014 04:06:14 -0400 Received: by mail-we0-f179.google.com with SMTP id x48so3113163wes.38 for ; Mon, 24 Mar 2014 01:06:12 -0700 (PDT) X-Received: by 10.180.102.42 with SMTP id fl10mr13915173wib.42.1395648372390; Mon, 24 Mar 2014 01:06:12 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id d6sm34909269wiz.4.2014.03.24.01.06.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 24 Mar 2014 01:06:11 -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 V5 3/3] cpufreq: Make cpufreq_notify_transition & cpufreq_notify_post_transition static Date: Mon, 24 Mar 2014 13:35:46 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: Sender: cpufreq-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: cpufreq@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.170 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. Reviewed-by: Srivatsa S. Bhat Signed-off-by: Viresh Kumar --- 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 eb562d0..abda660 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 e337602..c48e595 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -339,10 +339,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,