[dpdk-stable] [dpdk-dev] [PATCH] lib/librte_power: set new frequecy on turbo_disable

Thomas Monjalon thomas at monjalon.net
Tue Apr 23 00:12:42 CEST 2019


15/04/2019 11:21, Hunt, David:
> On 12/4/2019 4:57 PM, Lee Daly wrote:
> > This patch will ensure the correct max frequency of a core is set in
> > the lcore_power_info struct when disabling turbo, while using the
> > intel pstate driver.
> >
> > Fixes: e6c6dc0f96c8 ("power: add p-state driver compatibility")
> > Cc: liang.j.ma at intel.com
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Lee Daly <lee.daly at intel.com>
> > ---
> > -
> > +	if ((pi->turbo_available) && (pi->curr_idx <= 1)) {
> > +		/* Try to set freq to max by default coming out of turbo */
> > +		if (power_pstate_cpufreq_freq_max(lcore_id) < 0) {
> > +			RTE_LOG(ERR, POWER,
> > +				"Failed to set frequency of lcore %u to max\n",
> > +				lcore_id);
> > +			return -1;
> > +		}
> > +	}
> >   	return 0;
> >   }
> 
> Acked-by: David Hunt <david.hunt at intel.com>

Applied without extra parentheses and with blank line restored.





More information about the stable mailing list