* Feature: Reimplement POSIX CPU information.

* BugFix: Correct a typo in setProcessoInformation -> setProcessorInformation.
This commit is contained in:
Robert MacGregor 2022-05-24 20:58:28 -04:00
parent c687c0d23a
commit 2368f1d97c
5 changed files with 221 additions and 17 deletions

View file

@ -28,7 +28,8 @@
Signal<void(void)> Platform::SystemInfoReady;
void SetProcessoInfo(Platform::SystemInfo_struct::Processor& pInfo, char* vendor, char* brand)
// fill the specified structure with information obtained from asm code
void SetProcessorInfo(Platform::SystemInfo_struct::Processor& pInfo, const char* vendor, const char* brand)
{
if (dStricmp(vendor, "GenuineIntel") == 0)
{
@ -70,4 +71,4 @@ void SetProcessoInfo(Platform::SystemInfo_struct::Processor& pInfo, char* vendor
// Trigger the signal
Platform::SystemInfoReady.trigger();
}
}

View file

@ -64,7 +64,7 @@ namespace CPUInfo
EConfig CPUCount( U32& totalAvailableLogical, U32& totalAvailableCores );
} // namespace CPUInfo
void SetProcessoInfo(Platform::SystemInfo_struct::Processor& pInfo, char* vendor, char* brand);
void SetProcessorInfo(Platform::SystemInfo_struct::Processor& pInfo, const char* vendor, const char* brand);
#endif // _TORQUE_PLATFORM_PLATFORMCOUNT_H_