Re: [PATCH 1/3] x86, sched: Calculate frequency invariance for AMD systems

2020-11-10 Thread Giovanni Gherdovich
On Tue, 2020-11-10 at 10:49 +0100, Peter Zijlstra wrote: > On Tue, Nov 10, 2020 at 09:39:34AM +0100, Giovanni Gherdovich wrote: > > > +#ifdef CONFIG_ACPI > > +void init_freq_invariance_cppc(void) > > +{ > > + init_freq_invariance(false, true); > > + > > + if

Re: [PATCH 1/3] x86, sched: Calculate frequency invariance for AMD systems

2020-11-10 Thread Peter Zijlstra
On Tue, Nov 10, 2020 at 09:39:34AM +0100, Giovanni Gherdovich wrote: > +#ifdef CONFIG_ACPI > +void init_freq_invariance_cppc(void) > +{ > + init_freq_invariance(false, true); > + > + if (static_branch_likely(_scale_freq_key)) > + on_each_cpu(init_counter_refs, NULL, 0); > +} >

[PATCH 1/3] x86, sched: Calculate frequency invariance for AMD systems

2020-11-10 Thread Giovanni Gherdovich
From: Nathan Fontenot This is the first pass in creating the ability to calculate the frequency invariance on AMD systems. This approach uses the CPPC highest performance and nominal performance values that range from 0 - 255 instead of a high and base frquency. This is because we do not have