On Fri, Jun 26, 2020 at 10:35 PM Honnappa Nagarahalli <[email protected]> wrote: > > get_tsc_freq uses 'nanosleep' system call to calculate the CPU > frequency. However, 'nanosleep' results in the process getting > un-scheduled. The kernel saves and restores the PMU state. This > ensures that the PMU cycles are not counted towards a sleeping > process. When RTE_ARM_EAL_RDTSC_USE_PMU is defined, this results > in incorrect CPU frequency calculation. This logic is replaced > with generic counter based loop. > > Bugzilla ID: 450 > Fixes: f91bcbb2d9a6 ("eal/arm: use high-resolution cycle counter") > Cc: [email protected] > > Signed-off-by: Honnappa Nagarahalli <[email protected]> > Reviewed-by: Ruifeng Wang <[email protected]> > Reviewed-by: Dharmik Thakkar <[email protected]> > Reviewed-by: Phil Yang <[email protected]> > Acked-by: Jerin Jacob <[email protected]>
Series applied, thanks. -- David Marchand

