[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

@@ -95,7 +95,11 @@ static bool getCoreCount(int * cores, int * procs)
return true;
}
bool lgCPUInfo(char * model, size_t modelSize, int * procs, int * cores)
bool lgCPUInfo(char * model, size_t modelSize, int * procs, int * cores,
int * sockets)
{
if (sockets)
*sockets = 1;
return getCPUModel(model, modelSize) && getCoreCount(cores, procs);
}