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

From: Viresh Kumar

Date: Thu Mar 26 2026 - 05:00:27 EST


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 ?

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

--
viresh