[dpdk-dev] [PATCH 2/2] eal/x86: implement x86 specific tsc hz

Sergio Gonzalez Monroy sergio.gonzalez.monroy at intel.com
Wed Aug 23 15:57:30 CEST 2017


On 23/08/2017 14:17, Bruce Richardson wrote:
> On Wed, Aug 23, 2017 at 01:42:41PM +0100, Sergio Gonzalez Monroy wrote:
>> First, try to use CPUID Time Stamp Counter and Nominal Core Crystal
>> Clock Information Leaf to determine the tsc hz on platforms that
>> supports it (does not require priviledge user).
>>
>> If the CPUID leaf is not available, then try to determine the tsc hz by
>> reading the MSR 0xCE (requires priviledge user).
>>
>> Default to the DPDK tsc hz estimation if both methods fail.
>>
>> Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy at intel.com>
>> ---
> This patch depends on Jerin's previous set for getting the exact TSC
> frequency on different platforms, right?

It does, I forgot to mention it.

I'll send them apart as these patches are not really dependent.

Thanks,
Sergio



More information about the dev mailing list