mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
ARM: don't calibrate TSC, use cntfrq_el0 info
This commit is contained in:
parent
4728478247
commit
08b02efc6c
1 changed files with 6 additions and 0 deletions
|
@ -483,6 +483,12 @@ ullong utils::get_tsc_freq()
|
||||||
{
|
{
|
||||||
static const ullong cal_tsc = []() -> ullong
|
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())
|
if (!has_invariant_tsc())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue