diff options
| -rw-r--r-- | indra/llcommon/llprocessor.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/indra/llcommon/llprocessor.cpp b/indra/llcommon/llprocessor.cpp index 9d53b9be35..f07a32c179 100644 --- a/indra/llcommon/llprocessor.cpp +++ b/indra/llcommon/llprocessor.cpp @@ -637,7 +637,15 @@ public:      LLProcessorInfoDarwinImpl()      {          getCPUIDInfo(); +#ifdef __arm64__ +        auto frequency = getSysctlInt64("hw.tbfrequency"); +        struct clockinfo clockrate; +        auto clockrate_len = sizeof(clockrate); +        if (!sysctlbyname("kern.clockrate", &clockrate, &clockrate_len, NULL, 0)) +            frequency *= clockrate.hz; +#else          uint64_t frequency = getSysctlInt64("hw.cpufrequency"); +#endif          setInfo(eFrequency, (F64)frequency  / (F64)1000000);      } | 
