1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-30 06:50:27 +08:00

Move linux-only variable into linux/cygwin block

This commit is contained in:
Dominic Hamon 2014-01-16 13:20:59 -08:00
parent e2633b9bd7
commit d184b2be2b

View File

@ -75,8 +75,6 @@ bool ReadIntFromFile(const char* file, int* value) {
#endif
void InitializeSystemInfo() {
bool saw_mhz = false;
// TODO: destroy this
pthread_mutex_init(&cputimens_mutex, NULL);
@ -85,6 +83,8 @@ void InitializeSystemInfo() {
char* err;
int freq;
bool saw_mhz = false;
// If the kernel is exporting the tsc frequency use that. There are issues
// where cpuinfo_max_freq cannot be relied on because the BIOS may be
// exporintg an invalid p-state (on x86) or p-states may be used to put the