Revert "drivers: cpufreq: Import Xiaomi changes"

This reverts commit f23ac5e487.

Change-Id: Ic509ab5af077928397832b36fed1eab8232cd7b7
This commit is contained in:
althafvly
2023-06-30 00:01:06 +05:30
parent 0d99c033fc
commit fc1f0bcf48
2 changed files with 4 additions and 2 deletions

View File

@@ -2266,6 +2266,10 @@ static int cpufreq_set_policy(struct cpufreq_policy *policy,
blocking_notifier_call_chain(&cpufreq_policy_notifier_list, blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
CPUFREQ_ADJUST, new_policy); CPUFREQ_ADJUST, new_policy);
/* adjust if necessary - hardware incompatibility */
blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
CPUFREQ_INCOMPATIBLE, new_policy);
/* /*
* verify the cpu speed can be set within this limit, which might be * verify the cpu speed can be set within this limit, which might be
* different to the first one * different to the first one

View File

@@ -151,8 +151,6 @@ static unsigned long limits_mitigation_notify(struct cpufreq_qcom *c,
freq = policy->cpuinfo.max_freq; freq = policy->cpuinfo.max_freq;
} }
freq = U32_MAX; //Fix me! This is WA here
sched_update_cpu_freq_min_max(&c->related_cpus, 0, freq); sched_update_cpu_freq_min_max(&c->related_cpus, 0, freq);
trace_dcvsh_freq(cpumask_first(&c->related_cpus), freq); trace_dcvsh_freq(cpumask_first(&c->related_cpus), freq);
c->dcvsh_freq_limit = freq; c->dcvsh_freq_limit = freq;