diff --git a/src/detection/gpu/gpu.h b/src/detection/gpu/gpu.h index 281b43ae1..0ba9ea74e 100644 --- a/src/detection/gpu/gpu.h +++ b/src/detection/gpu/gpu.h @@ -32,7 +32,7 @@ typedef struct FFGPUResult FFstrbuf platformApi; double temperature; int32_t coreCount; - double frequency; // Real time clock frequency in GHz + double frequency; // Maximum time clock frequency in GHz FFGPUMemory dedicated; FFGPUMemory shared; uint64_t deviceId; // Used internally, may be uninitialized diff --git a/src/detection/gpu/gpu_linux.c b/src/detection/gpu/gpu_linux.c index 3a4ecf3d6..96921085d 100644 --- a/src/detection/gpu/gpu_linux.c +++ b/src/detection/gpu/gpu_linux.c @@ -92,11 +92,6 @@ static void pciDetectAmdSpecific(const FFGPUOptions* options, FFGPUResult* gpu, gpu->temperature = (double) value / 1000; } - ffStrbufSubstrBefore(pciDir, hwmonLen); - ffStrbufAppendS(pciDir, "freq1_input"); // The gfx/compute clock in hertz - if (ffReadFileBuffer(pciDir->chars, buffer) && (value = ffStrbufToUInt(buffer, 0))) - gpu->frequency = (double) value / (1000 * 1000 * 1000); - if (options->driverSpecific) { ffStrbufSubstrBefore(pciDir, pciDirLen);