AuroraRuntime/Include/Aurora/HWInfo/CpuInfo.hpp
Reece 672915cd55 [*] Improve CpuId awareness through affinity
[*] Clean up OSThread
[*] Tweak HWInfo/CpuInfo
2022-03-16 18:15:57 +00:00

35 lines
651 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: CpuInfo.hpp
Date: 2021-6-10
Author: Reece
***/
#pragma once
#include "CpuBitId.hpp"
#include "CpuId.hpp"
namespace Aurora::HWInfo
{
struct CpuInfo
{
Aurora::Build::EArchitecture cpuArch;
AuUInt8 uSocket;
AuUInt8 uCores;
AuUInt8 uThreads;
AuList<AuInt64> threadTopology;
AuList<CpuBitId> serverTopology;
CpuBitId maskECores;
CpuBitId entireCpu;
bool bMaskMTContig;
bool bMaskMTHalf;
CpuId cpuId;
};
AUKN_SYM const CpuInfo &GetCPUInfo();
}