mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[CPUFREQ] Don't export governors for default governor
We don't need to export the governors for use as the default governor, because the default governor will be built-in anyway and we can access the symbol directly. This also fixes the following sparse warnings: drivers/cpufreq/cpufreq_conservative.c:578:25: warning: symbol 'cpufreq_gov_conservative' was not declared. Should it be static? drivers/cpufreq/cpufreq_ondemand.c:582:25: warning: symbol 'cpufreq_gov_ondemand' was not declared. Should it be static? drivers/cpufreq/cpufreq_performance.c:39:25: warning: symbol 'cpufreq_gov_performance' was not declared. Should it be static? drivers/cpufreq/cpufreq_powersave.c:38:25: warning: symbol 'cpufreq_gov_powersave' was not declared. Should it be static? drivers/cpufreq/cpufreq_userspace.c:190:25: warning: symbol 'cpufreq_gov_userspace' was not declared. Should it be static? Signed-off-by: Sven Wegener <sven.wegener@stealer.net> Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
parent
8080091310
commit
c4d14bc0bb
5 changed files with 15 additions and 5 deletions
|
@ -36,12 +36,14 @@ static int cpufreq_governor_performance(struct cpufreq_policy *policy,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CPU_FREQ_GOV_PERFORMANCE_MODULE
|
||||
static
|
||||
#endif
|
||||
struct cpufreq_governor cpufreq_gov_performance = {
|
||||
.name = "performance",
|
||||
.governor = cpufreq_governor_performance,
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
EXPORT_SYMBOL(cpufreq_gov_performance);
|
||||
|
||||
|
||||
static int __init cpufreq_gov_performance_init(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue