[PATCH] eal/x86: fix TSC frequency query
Stephen Hemminger
stephen at networkplumber.org
Fri Jan 30 19:15:06 CET 2026
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>
More information about the stable
mailing list