[*] (654cc8fe
cont) Win XP -> 8: CpuInfo::maskAllCores fix
This commit is contained in:
parent
788dde684b
commit
f919452bc4
@ -214,6 +214,7 @@ namespace Aurora::HWInfo
|
||||
CpuBitId serverId;
|
||||
serverId.lower = mask;
|
||||
gCpuInfo.coreTopology.push_back(serverId);
|
||||
gCpuInfo.maskAllCores.Add(serverId);
|
||||
|
||||
auto uThreadsInCore = AuPopCnt(mask);
|
||||
gCpuInfo.uThreads += uThreadsInCore;
|
||||
@ -240,7 +241,6 @@ namespace Aurora::HWInfo
|
||||
|
||||
gCpuInfo.pCoreTopology.push_back(serverId);
|
||||
}
|
||||
|
||||
}
|
||||
else if (sysinfo[i].Relationship == RelationProcessorPackage)
|
||||
{
|
||||
@ -292,6 +292,7 @@ namespace Aurora::HWInfo
|
||||
coreId.lower = mask;
|
||||
gCpuInfo.coreTopology.push_back(coreId);
|
||||
gCpuInfo.pCoreTopology.push_back(coreId);
|
||||
gCpuInfo.maskAllCores.Add(coreId);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -317,6 +318,7 @@ namespace Aurora::HWInfo
|
||||
coreId.lower = maskC;
|
||||
gCpuInfo.coreTopology.push_back(coreId);
|
||||
gCpuInfo.pCoreTopology.push_back(coreId);
|
||||
gCpuInfo.maskAllCores.Add(coreId);
|
||||
}
|
||||
|
||||
gCpuInfo.uCores = gCpuInfo.uThreads / 2;
|
||||
|
Loading…
Reference in New Issue
Block a user