mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[CPUFREQ] Remove deprecated /proc/acpi/processor/performance write support
Remove deprecated /proc/acpi/processor/performance write support Writing to /proc/acpi/processor/xy/performance interferes with sysfs cpufreq interface. Also removes buggy cpufreq_set_policy exported symbol. Signed-off-by: Thomas Renninger <[email protected]> Signed-off-by: Dave Jones <[email protected]>
This commit is contained in:
parent
22c970f346
commit
632786ce9f
3 changed files with 1 additions and 83 deletions
|
|
@ -1625,43 +1625,6 @@ error_out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* cpufreq_set_policy - set a new CPUFreq policy
|
||||
* @policy: policy to be set.
|
||||
*
|
||||
* Sets a new CPU frequency and voltage scaling policy.
|
||||
*/
|
||||
int cpufreq_set_policy(struct cpufreq_policy *policy)
|
||||
{
|
||||
int ret = 0;
|
||||
struct cpufreq_policy *data;
|
||||
|
||||
if (!policy)
|
||||
return -EINVAL;
|
||||
|
||||
data = cpufreq_cpu_get(policy->cpu);
|
||||
if (!data)
|
||||
return -EINVAL;
|
||||
|
||||
if (unlikely(lock_policy_rwsem_write(policy->cpu)))
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
ret = __cpufreq_set_policy(data, policy);
|
||||
data->user_policy.min = data->min;
|
||||
data->user_policy.max = data->max;
|
||||
data->user_policy.policy = data->policy;
|
||||
data->user_policy.governor = data->governor;
|
||||
|
||||
unlock_policy_rwsem_write(policy->cpu);
|
||||
|
||||
cpufreq_cpu_put(data);
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(cpufreq_set_policy);
|
||||
|
||||
|
||||
/**
|
||||
* cpufreq_update_policy - re-evaluate an existing cpufreq policy
|
||||
* @cpu: CPU which shall be re-evaluated
|
||||
|
|
|
|||
Loading…
Reference in a new issue