[*] Another uniproc test

This commit is contained in:
Reece Wilson 2023-08-25 12:42:31 +01:00
parent 337df8040c
commit 4a73f7250f

View File

@ -29,11 +29,18 @@ namespace Aurora::Threading
AUKN_SYM AuUInt32 GetTotalSpinCountTimeout() AUKN_SYM AuUInt32 GetTotalSpinCountTimeout()
{ {
AuUInt32 uCount {}; AuUInt32 uCount {};
uCount = 1u << AuUInt32(gRuntimeConfig.threadingConfig.uSpinLoopPowerA);
if (!gRuntimeConfig.threadingConfig.bPlatformIsSMPProcessorOptimized)
{
return 16;
}
uCount = 1u << AuUInt32(gRuntimeConfig.threadingConfig.uSpinLoopPowerA);
if (gHasThreadLocalTimeout) if (gHasThreadLocalTimeout)
{ {
uCount += 1u << AuUInt32(tlsSpinCountLocal); uCount += 1u << AuUInt32(tlsSpinCountLocal);
} }
return uCount; return uCount;
} }