diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-03-24 04:05:46 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-26 11:41:41 -0400 |
commit | 236a98005274d8011136aee4aef52241588a9712 (patch) | |
tree | aca053ef08b7549c8a489cc8d5d5cdd111b65583 | |
parent | 8fec051eea736ec1d8060a2c8766bf3a6b32c3d2 (diff) |
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: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 6 | ||||
-rw-r--r-- | 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 eb562d043412..abda6609d3e7 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -331,16 +331,15 @@ static void __cpufreq_notify_transition(struct cpufreq_policy *policy, | |||
331 | * function. It is called twice on all CPU frequency changes that have | 331 | * function. It is called twice on all CPU frequency changes that have |
332 | * external effects. | 332 | * external effects. |
333 | */ | 333 | */ |
334 | void cpufreq_notify_transition(struct cpufreq_policy *policy, | 334 | static void cpufreq_notify_transition(struct cpufreq_policy *policy, |
335 | struct cpufreq_freqs *freqs, unsigned int state) | 335 | struct cpufreq_freqs *freqs, unsigned int state) |
336 | { | 336 | { |
337 | for_each_cpu(freqs->cpu, policy->cpus) | 337 | for_each_cpu(freqs->cpu, policy->cpus) |
338 | __cpufreq_notify_transition(policy, freqs, state); | 338 | __cpufreq_notify_transition(policy, freqs, state); |
339 | } | 339 | } |
340 | EXPORT_SYMBOL_GPL(cpufreq_notify_transition); | ||
341 | 340 | ||
342 | /* Do post notifications when there are chances that transition has failed */ | 341 | /* Do post notifications when there are chances that transition has failed */ |
343 | void cpufreq_notify_post_transition(struct cpufreq_policy *policy, | 342 | static void cpufreq_notify_post_transition(struct cpufreq_policy *policy, |
344 | struct cpufreq_freqs *freqs, int transition_failed) | 343 | struct cpufreq_freqs *freqs, int transition_failed) |
345 | { | 344 | { |
346 | cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); | 345 | cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); |
@@ -351,7 +350,6 @@ void cpufreq_notify_post_transition(struct cpufreq_policy *policy, | |||
351 | cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); | 350 | cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); |
352 | cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); | 351 | cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); |
353 | } | 352 | } |
354 | EXPORT_SYMBOL_GPL(cpufreq_notify_post_transition); | ||
355 | 353 | ||
356 | void cpufreq_freq_transition_begin(struct cpufreq_policy *policy, | 354 | void cpufreq_freq_transition_begin(struct cpufreq_policy *policy, |
357 | struct cpufreq_freqs *freqs) | 355 | struct cpufreq_freqs *freqs) |
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index e33760268a86..c48e595f623e 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -339,10 +339,6 @@ static inline void cpufreq_resume(void) {} | |||
339 | int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); | 339 | int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); |
340 | int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); | 340 | int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list); |
341 | 341 | ||
342 | void cpufreq_notify_transition(struct cpufreq_policy *policy, | ||
343 | struct cpufreq_freqs *freqs, unsigned int state); | ||
344 | void cpufreq_notify_post_transition(struct cpufreq_policy *policy, | ||
345 | struct cpufreq_freqs *freqs, int transition_failed); | ||
346 | void cpufreq_freq_transition_begin(struct cpufreq_policy *policy, | 342 | void cpufreq_freq_transition_begin(struct cpufreq_policy *policy, |
347 | struct cpufreq_freqs *freqs); | 343 | struct cpufreq_freqs *freqs); |
348 | void cpufreq_freq_transition_end(struct cpufreq_policy *policy, | 344 | void cpufreq_freq_transition_end(struct cpufreq_policy *policy, |