[*] Hey, wait a minute. Update Linux cpuinfo.
This commit is contained in:
parent
098d63eeb3
commit
6271af0ada
@ -10,19 +10,12 @@
|
|||||||
#include "CpuInfo.hpp"
|
#include "CpuInfo.hpp"
|
||||||
#include "CpuInfo.Linux.hpp"
|
#include "CpuInfo.Linux.hpp"
|
||||||
|
|
||||||
#if defined(AURORA_IS_BSD_DERIVED)
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysinfo.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(AURORA_IS_POSIX_DERIVED)
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <sys/sysinfo.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Aurora::HWInfo
|
namespace Aurora::HWInfo
|
||||||
{
|
{
|
||||||
|
|
||||||
static AuUInt32 ReadUInt(const AuString &path)
|
static AuUInt32 ReadUInt(const AuString &path)
|
||||||
{
|
{
|
||||||
AuString contents;
|
AuString contents;
|
||||||
@ -117,10 +110,11 @@ namespace Aurora::HWInfo
|
|||||||
if (errno == ERANGE) continue;
|
if (errno == ERANGE) continue;
|
||||||
children.Add(CpuBitId(word));
|
children.Add(CpuBitId(word));
|
||||||
}
|
}
|
||||||
|
|
||||||
gCpuInfo.coreTopology.push_back(children);
|
gCpuInfo.coreTopology.push_back(children);
|
||||||
|
gCpuInfo.threadTopology.push_back(children.lower);
|
||||||
}
|
}
|
||||||
|
|
||||||
gCpuInfo.threadTopology.push_back(children.lower);
|
|
||||||
gCpuInfo.maskAllCores.Add(cpuId);
|
gCpuInfo.maskAllCores.Add(cpuId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user