[PATCH v5 2/2] timer: allow platform to override cpu TSC frequency

Bruce Richardson bruce.richardson at intel.com
Thu Oct 3 16:06:06 CEST 2024


On Thu, Oct 03, 2024 at 03:26:04PM +0300, Isaac Boukris wrote:
> The CPU provided value is often not accurate, allow overriding it
> based on info from the host OS.
> 
> On Linux X86, if the tsc_known_freq cpu flag is missing, it means
> the kernel doesn't trust it and calculates its own. We should do
> the same to avoid drift.
> 
> On freebsd we have access to the kernel tsc_hz value, just use it.
> 
> Signed-off-by: Isaac Boukris <iboukris at gmail.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list