PpmPerfApplyDomainStates
INT64 __fastcall PpmPerfApplyDomainStates(){
__int64 k;
INT64 result;
INT64 i;
INT64 j;
if( PpmPerfArtificialDomainEnabled )
{
for( i = PpmPerfDomainHead; (INT64 *)i != &PpmPerfDomainHead; i = *(_QWORD *)i )
{
if( *(_BYTE *)(i + 765) )
{
result = KeIsSubsetAffinityEx((_KAFFINITY_EX *)(i + 24), &PpmPerfNewCoreParkingMask);
if( !(_DWORD)result )
{
for( j = PpmPerfDomainHead; (INT64 *)j != &PpmPerfDomainHead; j = *(_QWORD *)j )
{
result = KeIsSubsetAffinityEx((_KAFFINITY_EX *)(j + 24), &PpmPerfNewCoreParkingMask);
if( !(_DWORD)result )
*(_BYTE *)(j + 765) = 1;
}
break;
}
}
}
}
for( k = PpmPerfDomainHead; (INT64 *)k != &PpmPerfDomainHead; k = *(_QWORD *)k )
{
if( *(_BYTE *)(k + 765) )
{
result = PpmPerfApplyDomainState(k);
if( (_BYTE)result )
*(_BYTE *)(k + 766) = 1;
*(_BYTE *)(k + 765) = 0;
}
}
LOBYTE(result) = 1;
return result;
}Referenced by:
No references.