Re: [PATCH] examples/link_status_interrupt: fix stats refresh rate

2022-06-26 Thread Thomas Monjalon
30/05/2022 11:37, Raja Zidane: > TIMER_MILLISECOND is defined as the number of cpu cycles per millisecond, > current definition is correct for cores with frequency of 2GHZ, for cores > with different frequency, it caused different periods between refresh, > (i.e. the definition is about 14ms on ARM

[PATCH] examples/link_status_interrupt: fix stats refresh rate

2022-05-30 Thread Raja Zidane
TIMER_MILLISECOND is defined as the number of cpu cycles per millisecond, current definition is correct for cores with frequency of 2GHZ, for cores with different frequency, it caused different periods between refresh, (i.e. the definition is about 14ms on ARM cores). Use dpdk API to get CPU frequ