Browse Source

hw.perflevel[01].cpusperl changed to hw.perflevel[01].cpusperl2

tags/v0.3.30
zanpeeters 9 months ago
parent
commit
7b66330dea
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cpuid_arm64.c

+ 2
- 2
cpuid_arm64.c View File

@@ -378,9 +378,9 @@ int detect(void)
cpulowperf=value64;
sysctlbyname("hw.nperflevels",&value64,&length64,NULL,0);
if (value64 > 1) {
sysctlbyname("hw.perflevel0.cpusperl",&value64,&length64,NULL,0);
sysctlbyname("hw.perflevel0.cpusperl2",&value64,&length64,NULL,0);
cpuhiperf=value64;
sysctlbyname("hw.perflevel1.cpusperl",&value64,&length64,NULL,0);
sysctlbyname("hw.perflevel1.cpusperl2",&value64,&length64,NULL,0);
cpulowperf=value64;
}
sysctlbyname("hw.cpufamily",&value64,&length64,NULL,0);


Loading…
Cancel
Save