CPU (Linux): detects march on aarch64

This commit is contained in:
Carter Li
2025-08-25 14:44:32 +08:00
committed by 李通洲
parent 7611d672b7
commit dd1a799abb
3 changed files with 256 additions and 70 deletions
+6
View File
@@ -46,9 +46,13 @@ static double parseHwmonDir(FFstrbuf* dir, FFstrbuf* buffer)
if(
ffStrbufContainS(buffer, "cpu") ||
#if __x86_64__ || __i386__
ffStrbufEqualS(buffer, "k10temp") || // AMD
ffStrbufEqualS(buffer, "fam15h_power") || // AMD
ffStrbufEqualS(buffer, "coretemp") // Intel
#else
ffStrbufEqualS(buffer, "temp") // Asahi
#endif
) return value / 1000.;
return FF_CPU_TEMP_UNSET;
@@ -734,6 +738,8 @@ FF_MAYBE_UNUSED static const char* detectCPUOthers(const FFCPUOptions* options,
if (cpu->coresPhysical == 0)
detectPhysicalCores(cpu);
ffCPUDetectByCpuid(cpu);
return NULL;
}
#endif