mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
Avoid special case for ARM64 in TSC
Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
This commit is contained in:
parent
75704d91a7
commit
5bfd38d4cb
1 changed files with 0 additions and 5 deletions
|
@ -40,11 +40,6 @@ int tsc_init(struct Tsc *t) {
|
||||||
return ret;
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#elif defined(__aarch64__)
|
|
||||||
// Read counter frequency from system register
|
|
||||||
uint64_t cntfrq;
|
|
||||||
asm volatile("mrs %0, cntfrq_el0" : "=r"(cntfrq));
|
|
||||||
t->frequency = cntfrq;
|
|
||||||
#else
|
#else
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
int ret = kernel::get_cpu_frequency(&t->frequency);
|
int ret = kernel::get_cpu_frequency(&t->frequency);
|
||||||
|
|
Loading…
Add table
Reference in a new issue