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:
parent
0e29829fa5
commit
abb2940c03
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue