1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +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:
Leonardo Carreras 2025-02-04 12:36:09 +00:00 committed by Steffen Vogel
parent 66756698d0
commit 94fcaa3dd7

View file

@ -40,11 +40,6 @@ int tsc_init(struct Tsc *t) {
return ret;
#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
#ifdef __linux__
int ret = kernel::get_cpu_frequency(&t->frequency);