Re: [PATCH v7 2/2] cpufreq: Add boost_freq_req QoS request

From: Pierre Gondois

Date: Thu Mar 26 2026 - 04:57:12 EST



On 3/26/26 09:48, Viresh Kumar wrote:
On 25-03-26, 17:52, Pierre Gondois wrote:
@@ -1377,6 +1386,8 @@ static void cpufreq_policy_free(struct cpufreq_policy *policy)
}
freq_qos_remove_request(policy->min_freq_req);
Since this doesn't check min_freq_req (and depend on the routine to return
early), shouldn't we do the same for below one ?

Yes it is possible,
there were different views but without the check is ok aswell.


+ if (policy->boost_freq_req)
+ freq_qos_remove_request(policy->boost_freq_req);
kfree(policy->min_freq_req);
cpufreq_policy_put_kobj(policy);