[*] Hey, wait a minute. Update Linux cpuinfo.

This commit is contained in:
Reece Wilson 2022-04-06 06:06:48 +01:00
parent 098d63eeb3
commit 6271af0ada

View File

@ -10,19 +10,12 @@
#include "CpuInfo.hpp"
#include "CpuInfo.Linux.hpp"
#if defined(AURORA_IS_BSD_DERIVED)
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
#if defined(AURORA_IS_POSIX_DERIVED)
#include <stdlib.h>
#include <sys/types.h>
#include <sys/sysinfo.h>
#endif
namespace Aurora::HWInfo
{
static AuUInt32 ReadUInt(const AuString &path)
{
AuString contents;
@ -117,10 +110,11 @@ namespace Aurora::HWInfo
if (errno == ERANGE) continue;
children.Add(CpuBitId(word));
}
gCpuInfo.coreTopology.push_back(children);
gCpuInfo.threadTopology.push_back(children.lower);
}
gCpuInfo.threadTopology.push_back(children.lower);
gCpuInfo.maskAllCores.Add(cpuId);
}
}