[PATCH v5 2/2] timer: allow platform to override cpu TSC frequency
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 3 17:14:27 CEST 2024
On Thu, 3 Oct 2024 15:06:06 +0100
Bruce Richardson <bruce.richardson at intel.com> wrote:
> 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>
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list