[PATCH] eal/x86: fix TSC frequency query

Thomas Monjalon thomas at monjalon.net
Tue Feb 3 12:08:47 CET 2026


30/01/2026 19:15, Stephen Hemminger:
> On Fri, 30 Jan 2026 18:10:26 +0100
> Thomas Monjalon <thomas at monjalon.net> wrote:
> 
> > After getting TSC information from cpuid instruction,
> > some values must be multiplied and divided.
> > We must multiply first to get the most accurate value.
> > 
> > Example:
> > 	before: 1000000000 * (23 / 10) = 2 GHz
> > 	after:  1000000000 * 23 / 10 = 2.3 GHz
> > 
> > Bugzilla ID: 1869
> > Fixes: ad3516bb4ae1 ("eal/x86: implement arch-specific TSC freq query")
> > Cc: stable at dpdk.org
> > 
> > Reported-by: Luigi Rizzo <rizzo.unipi at gmail.com>
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> 
> Reviewed-by: Stephen Hemminger <stephen at networkplumber.org>

Applied





More information about the stable mailing list