Commit 183edb20 authored by Yangtao Li's avatar Yangtao Li Committed by Rafael J. Wysocki

cpufreq: Make cpufreq_global_kobject static

The cpufreq_global_kobject is only used internally by cpufreq.c
after commit 2361be23 ("cpufreq: Don't create empty
/sys/devices/system/cpu/cpufreq directory").

Make it static.
Signed-off-by: default avatarYangtao Li <tiny.windzz@gmail.com>
[ rjw: Add empty line after cpufreq_global_kobject definition ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent cf3c8f84
...@@ -105,6 +105,8 @@ bool have_governor_per_policy(void) ...@@ -105,6 +105,8 @@ bool have_governor_per_policy(void)
} }
EXPORT_SYMBOL_GPL(have_governor_per_policy); EXPORT_SYMBOL_GPL(have_governor_per_policy);
static struct kobject *cpufreq_global_kobject;
struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy) struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy)
{ {
if (have_governor_per_policy()) if (have_governor_per_policy())
...@@ -2745,9 +2747,6 @@ int cpufreq_unregister_driver(struct cpufreq_driver *driver) ...@@ -2745,9 +2747,6 @@ int cpufreq_unregister_driver(struct cpufreq_driver *driver)
} }
EXPORT_SYMBOL_GPL(cpufreq_unregister_driver); EXPORT_SYMBOL_GPL(cpufreq_unregister_driver);
struct kobject *cpufreq_global_kobject;
EXPORT_SYMBOL(cpufreq_global_kobject);
static int __init cpufreq_core_init(void) static int __init cpufreq_core_init(void)
{ {
if (cpufreq_disabled()) if (cpufreq_disabled())
......
...@@ -201,9 +201,6 @@ static inline bool policy_is_shared(struct cpufreq_policy *policy) ...@@ -201,9 +201,6 @@ static inline bool policy_is_shared(struct cpufreq_policy *policy)
return cpumask_weight(policy->cpus) > 1; return cpumask_weight(policy->cpus) > 1;
} }
/* /sys/devices/system/cpu/cpufreq: entry point for global variables */
extern struct kobject *cpufreq_global_kobject;
#ifdef CONFIG_CPU_FREQ #ifdef CONFIG_CPU_FREQ
unsigned int cpufreq_get(unsigned int cpu); unsigned int cpufreq_get(unsigned int cpu);
unsigned int cpufreq_quick_get(unsigned int cpu); unsigned int cpufreq_quick_get(unsigned int cpu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment