On Sun, 27 Sep 2026 12:54:40 -0700
Stephen Hemminger <[email protected]> wrote:

> +     /*
> +      * Several get_tsc_freq_arch() implementations return zero when the
> +      * frequency cannot be read, and a TSC that does not advance at least
> +      * once per second measures as zero.  Such a counter cannot be scaled
> +      * to a time at all, so fail rather than let callers of
> +      * rte_get_tsc_hz() divide by zero.
> +      */
> +     if (freq == 0) {
> +             EAL_LOG(ERR, "TSC frequency could not be determined");
> +             return -1;
> +     }
> +

Sorry for the AI generated comment here. Will fix in next version.

Reply via email to