mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-12 01:28:35 +00:00
cpufreq: remove redundant 'governor' field from user_policy
Its always same as policy->governor, and there is no need to keep another copy of it. Remove it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
14ca0bdfdd
commit
e27f8bd248
2 changed files with 2 additions and 6 deletions
|
@ -675,7 +675,6 @@ static ssize_t store_scaling_governor(struct cpufreq_policy *policy,
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
policy->user_policy.policy = policy->policy;
|
policy->user_policy.policy = policy->policy;
|
||||||
policy->user_policy.governor = policy->governor;
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1323,10 +1322,9 @@ static int cpufreq_online(unsigned int cpu)
|
||||||
goto out_exit_policy;
|
goto out_exit_policy;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_policy) {
|
if (new_policy)
|
||||||
policy->user_policy.policy = policy->policy;
|
policy->user_policy.policy = policy->policy;
|
||||||
policy->user_policy.governor = policy->governor;
|
|
||||||
}
|
|
||||||
up_write(&policy->rwsem);
|
up_write(&policy->rwsem);
|
||||||
|
|
||||||
kobject_uevent(&policy->kobj, KOBJ_ADD);
|
kobject_uevent(&policy->kobj, KOBJ_ADD);
|
||||||
|
@ -2305,7 +2303,6 @@ int cpufreq_update_policy(unsigned int cpu)
|
||||||
new_policy.min = policy->user_policy.min;
|
new_policy.min = policy->user_policy.min;
|
||||||
new_policy.max = policy->user_policy.max;
|
new_policy.max = policy->user_policy.max;
|
||||||
new_policy.policy = policy->user_policy.policy;
|
new_policy.policy = policy->user_policy.policy;
|
||||||
new_policy.governor = policy->user_policy.governor;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BIOS might change freq behind our back
|
* BIOS might change freq behind our back
|
||||||
|
|
|
@ -55,7 +55,6 @@ struct cpufreq_real_policy {
|
||||||
unsigned int min; /* in kHz */
|
unsigned int min; /* in kHz */
|
||||||
unsigned int max; /* in kHz */
|
unsigned int max; /* in kHz */
|
||||||
unsigned int policy; /* see above */
|
unsigned int policy; /* see above */
|
||||||
struct cpufreq_governor *governor; /* see below */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cpufreq_policy {
|
struct cpufreq_policy {
|
||||||
|
|
Loading…
Add table
Reference in a new issue