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:
parent
66756698d0
commit
94fcaa3dd7
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue