diff --git a/common/lib/tsc.cpp b/common/lib/tsc.cpp index 587094462..e6196972c 100644 --- a/common/lib/tsc.cpp +++ b/common/lib/tsc.cpp @@ -52,7 +52,10 @@ int tsc_init(struct Tsc *t) { return ret; #endif #endif - return (int)(t->frequency); + if (t->frequency) + return 0; // Frequency determined with success + else + return -1; } uint64_t tsc_rate_to_cycles(struct Tsc *t, double rate) {