cpufreq: governor: Rename some data types and variables
The ondemand and conservative governors are represented by struct common_dbs_data whose name doesn't reflect the purpose it is used for, so rename it to struct dbs_governor and rename variables of that type accordingly. No functional changes. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
@@ -219,7 +219,7 @@ static unsigned int od_dbs_timer(struct cpufreq_policy *policy)
|
||||
}
|
||||
|
||||
/************************** sysfs interface ************************/
|
||||
static struct common_dbs_data od_dbs_cdata;
|
||||
static struct dbs_governor od_dbs_gov;
|
||||
|
||||
/**
|
||||
* update_sampling_rate - update sampling rate effective immediately if needed.
|
||||
@@ -542,7 +542,7 @@ static struct od_ops od_ops = {
|
||||
static int od_cpufreq_governor_dbs(struct cpufreq_policy *policy,
|
||||
unsigned int event);
|
||||
|
||||
static struct common_dbs_data od_dbs_cdata = {
|
||||
static struct dbs_governor od_dbs_gov = {
|
||||
.gov = {
|
||||
.name = "ondemand",
|
||||
.governor = od_cpufreq_governor_dbs,
|
||||
@@ -561,12 +561,12 @@ static struct common_dbs_data od_dbs_cdata = {
|
||||
.exit = od_exit,
|
||||
};
|
||||
|
||||
#define CPU_FREQ_GOV_ONDEMAND (&od_dbs_cdata.gov)
|
||||
#define CPU_FREQ_GOV_ONDEMAND (&od_dbs_gov.gov)
|
||||
|
||||
static int od_cpufreq_governor_dbs(struct cpufreq_policy *policy,
|
||||
unsigned int event)
|
||||
{
|
||||
return cpufreq_governor_dbs(policy, &od_dbs_cdata, event);
|
||||
return cpufreq_governor_dbs(policy, &od_dbs_gov, event);
|
||||
}
|
||||
|
||||
static void od_set_powersave_bias(unsigned int powersave_bias)
|
||||
|
Reference in New Issue
Block a user