Re: [PATCH v3 5/7] cpufreq: add function to get the hardware max frequency

From: Valentin Schneider
Date: Thu Feb 13 2020 - 10:22:16 EST


On 2/13/20 12:59 PM, Ionela Voinescu wrote:
>> What about intel_pstate / turbo stuff? IIRC one of Giovanni's issues was that
>> turbo freq is not always reported as the max freq. Dunno if we can do
>> anything about it; at the very least maybe document the caveat?
>>
>
> Okay, I can add details in the description in regards to potential
> reasons to overwrite this function. But basically this is one of the
> reasons for making this a weak function. The best information we can
> generically get for maximum hardware frequency is cpuinfo.max_freq.
> But if platforms have the possibility to obtain this differently from
> either hardware or firmware they can overwrite this.
>

Right, that would be handled by a different implementation of
that function, so this wasn't too relevant of a comment. Sorry!