[common] cpuinfo: add sockets to interface

This commit is contained in:
Quantum
2022-01-07 03:06:17 -05:00
committed by Geoffrey McRae
parent 32134b33ea
commit 194241c5a3
5 changed files with 16 additions and 6 deletions

View File

@@ -26,13 +26,14 @@ void lgDebugCPU(void)
char model[1024];
int procs;
int cores;
int sockets;
if (!lgCPUInfo(model, sizeof model, &procs, &cores))
if (!lgCPUInfo(model, sizeof model, &procs, &cores, &sockets))
{
DEBUG_WARN("Failed to get CPU information");
return;
}
DEBUG_INFO("CPU Model: %s", model);
DEBUG_INFO("CPU: %d cores, %d threads", cores, procs);
DEBUG_INFO("CPU: %d sockets, %d cores, %d threads", sockets, cores, procs);
}