* Fix cmake detection on pthread_affinity test on FreeBSD
In FreeBSD, non posix thread functions locate in the pthread_np.h. We
check the platform and include the correct header.
Also, pthread related features in some platforms require link to special
library. We append Threads target to BENCHMARK_CXX_LIBRARIES so that it
can be added by cxx_feature_check.
* fixup! Fix cmake detection on pthread_affinity test on FreeBSD
---------
Co-authored-by: Roman Lebedev <lebedev.ri@gmail.com>
* Fix CPU frequency estimation on riscv
* Cleanup code for CPU frequency estimation
* Fix use before definition of the macro
* Move the platform definitions back
* Fix compilation error on windows
* Remove unused sleep.h and sleep.cc