1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Fix return value in TSC init

Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
This commit is contained in:
Leonardo Carreras 2025-02-03 17:54:23 +00:00
parent 0e29829fa5
commit abb2940c03

View file

@ -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) {