CPU (FreeBSD): remove showPeCoreCount support

It doesn't work. Ref #1260
This commit is contained in:
李通洲 2024-09-12 20:57:59 +08:00
parent ce90689ba3
commit 7bbaca2fab
No known key found for this signature in database
GPG Key ID: 79D0E1C4B64C86A0

View File

@ -53,16 +53,6 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
// MHz/Watts pairs like: 2501/32000 2187/27125 2000/24000
uint32_t fmax = (uint32_t) strtoul(buffer.chars, NULL, 10);
if (cpu->frequencyMax < fmax) cpu->frequencyMax = fmax;
if (options->showPeCoreCount)
{
uint32_t ifreq = 0;
while (cpu->coreTypes[ifreq].freq != fmax && cpu->coreTypes[ifreq].freq > 0)
++ifreq;
if (cpu->coreTypes[ifreq].freq == 0)
cpu->coreTypes[ifreq].freq = fmax;
cpu->coreTypes[ifreq].count++;
}
}
else
break;