System: Don't fail startup if cpuinfo init fails

This commit is contained in:
Stenzek 2024-12-30 18:11:56 +10:00
parent 3c5db39ee4
commit 7228f6f1cf
No known key found for this signature in database
1 changed files with 1 additions and 3 deletions

View File

@ -382,7 +382,6 @@ bool System::PerformEarlyHardwareChecks(Error* error)
Error::SetStringFmt(
error, "Page size mismatch. This build was compiled with {} byte pages, but the system has {} byte pages.",
HOST_PAGE_SIZE, runtime_host_page_size);
CPUThreadShutdown();
return false;
}
#else
@ -390,7 +389,6 @@ bool System::PerformEarlyHardwareChecks(Error* error)
{
Error::SetStringFmt(error, "Page size of {} bytes is out of the range supported by this build: {}-{}.",
HOST_PAGE_SIZE, MIN_HOST_PAGE_SIZE, MAX_HOST_PAGE_SIZE);
CPUThreadShutdown();
return false;
}
#endif
@ -451,7 +449,7 @@ void System::LogStartupInformation()
INFO_LOG("Version: {} [{}]", g_scm_tag_str, g_scm_branch_str);
INFO_LOG("SCM Timestamp: {}", g_scm_date_str);
INFO_LOG("Build Timestamp: {} {}", __DATE__, __TIME__);
if (const cpuinfo_package* package = cpuinfo_get_package(0)) [[likely]]
if (const cpuinfo_package* package = cpuinfo_initialize() ? cpuinfo_get_package(0) : nullptr) [[likely]]
{
INFO_LOG("Host CPU: {}", package->name);
INFO_LOG("CPU has {} logical processor(s) and {} core(s) across {} cluster(s).", package->processor_count,