Commit d184b2be by Dominic Hamon

Move linux-only variable into linux/cygwin block

parent e2633b9b
...@@ -75,8 +75,6 @@ bool ReadIntFromFile(const char* file, int* value) { ...@@ -75,8 +75,6 @@ bool ReadIntFromFile(const char* file, int* value) {
#endif #endif
void InitializeSystemInfo() { void InitializeSystemInfo() {
bool saw_mhz = false;
// TODO: destroy this // TODO: destroy this
pthread_mutex_init(&cputimens_mutex, NULL); pthread_mutex_init(&cputimens_mutex, NULL);
...@@ -85,6 +83,8 @@ void InitializeSystemInfo() { ...@@ -85,6 +83,8 @@ void InitializeSystemInfo() {
char* err; char* err;
int freq; int freq;
bool saw_mhz = false;
// If the kernel is exporting the tsc frequency use that. There are issues // 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 // 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 // exporintg an invalid p-state (on x86) or p-states may be used to put the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment