1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 19:52:37 +01:00

ARM: don't calibrate TSC, use cntfrq_el0 info

This commit is contained in:
Nekotekina 2022-01-18 04:21:42 +03:00
parent 4728478247
commit 08b02efc6c

View File

@ -483,6 +483,12 @@ ullong utils::get_tsc_freq()
{
static const ullong cal_tsc = []() -> ullong
{
#ifdef ARCH_ARM64
u64 r = 0;
__asm__ volatile("mrs %0, cntfrq_el0" : "=r" (r));
return r;
#endif
if (!has_invariant_tsc())
return 0;