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:
parent
4728478247
commit
08b02efc6c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user