The program uses the library function getfrequency. In the past some students have reported that the function getfrequency will return erroneous results. The author of getfrequency has read carefully the source code of the function and cannot find any errors in programming. Test this program on your computer and discover if it returns correct results to the caller function.
The collaborators working on lscpu have their repository here: