Message ID | 20231027080400.56703-1-vincent.guittot@linaro.org |
---|---|
Headers | show |
Series | consolidate and cleanup CPU capacity | expand |
* Vincent Guittot <vincent.guittot@linaro.org> wrote: > Vincent Guittot (7): > topology: add a new arch_scale_freq_reference > cpufreq: use the fixed and coherent frequency for scaling capacity > cpufreq/schedutil: use a fixed reference frequency > energy_model: use a fixed reference frequency > cpufreq/cppc: move and rename cppc_cpufreq_{perf_to_khz|khz_to_perf} > cpufreq/cppc: set the frequency used for computing the capacity > arm64/amu: use capacity_ref_freq to set AMU ratio Just a general comment wrt. titles: please capitalize the verb, as we'd do in a proper sentence. Saves maintainers one more thing to fix when applying patches. Thanks, Ingo
* Vincent Guittot <vincent.guittot@linaro.org> wrote: > +/* Look up the max frequency in DMI */ > +static u64 cppc_get_dmi_max_khz(void) > +{ > + u16 mhz = 0; > + > + dmi_walk(cppc_find_dmi_mhz, &mhz); > + > + /* > + * Real stupid fallback value, just in case there is no > + * actual value set. > + */ > + mhz = mhz ? mhz : 1; > + > + return (1000 * mhz); Nit, and I realize this is pre-existing code, but 'return' is a keyword, not a function, so the parentheses are not needed. Thanks, Ingo