提交 236a9800 编写于 作者: V Viresh Kumar 提交者: Rafael J. Wysocki

cpufreq: Make cpufreq_notify_transition & cpufreq_notify_post_transition static

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: NSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 8fec051e
...@@ -331,16 +331,15 @@ static void __cpufreq_notify_transition(struct cpufreq_policy *policy, ...@@ -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 * function. It is called twice on all CPU frequency changes that have
* external effects. * 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) struct cpufreq_freqs *freqs, unsigned int state)
{ {
for_each_cpu(freqs->cpu, policy->cpus) for_each_cpu(freqs->cpu, policy->cpus)
__cpufreq_notify_transition(policy, freqs, state); __cpufreq_notify_transition(policy, freqs, state);
} }
EXPORT_SYMBOL_GPL(cpufreq_notify_transition);
/* Do post notifications when there are chances that transition has failed */ /* 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) struct cpufreq_freqs *freqs, int transition_failed)
{ {
cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE);
...@@ -351,7 +350,6 @@ void cpufreq_notify_post_transition(struct cpufreq_policy *policy, ...@@ -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_PRECHANGE);
cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE);
} }
EXPORT_SYMBOL_GPL(cpufreq_notify_post_transition);
void cpufreq_freq_transition_begin(struct cpufreq_policy *policy, void cpufreq_freq_transition_begin(struct cpufreq_policy *policy,
struct cpufreq_freqs *freqs) struct cpufreq_freqs *freqs)
......
...@@ -339,10 +339,6 @@ static inline void cpufreq_resume(void) {} ...@@ -339,10 +339,6 @@ static inline void cpufreq_resume(void) {}
int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list);
int cpufreq_unregister_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, void cpufreq_freq_transition_begin(struct cpufreq_policy *policy,
struct cpufreq_freqs *freqs); struct cpufreq_freqs *freqs);
void cpufreq_freq_transition_end(struct cpufreq_policy *policy, void cpufreq_freq_transition_end(struct cpufreq_policy *policy,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册