diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 1691d786587e..b050316480fc 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2266,6 +2266,10 @@ static int cpufreq_set_policy(struct cpufreq_policy *policy, blocking_notifier_call_chain(&cpufreq_policy_notifier_list, 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 * different to the first one diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index 20ee8c5fa8cc..e1f1331fb763 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -151,8 +151,6 @@ static unsigned long limits_mitigation_notify(struct cpufreq_qcom *c, 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); trace_dcvsh_freq(cpumask_first(&c->related_cpus), freq); c->dcvsh_freq_limit = freq;