Re: [PATCH V2] cpufreq: Fix per-policy boost behavior on SoCs using cpufreq_boost_set_sw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08-03-24, 16:06, Sibi Sankar wrote:
> +		/* Let the per-policy boost flag mirror the cpufreq_driver boost during init */
> +		if (cpufreq_driver->boost_enabled)
> +			policy->boost_enabled = policy_has_boost_freq(policy) ? true : false;

Can be written as:

policy->boost_enabled = cpufreq_boost_enabled() && policy_has_boost_freq(policy);

Reviewed-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

-- 
viresh




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux