PpmDeepestHardwareIdleState
UINT8 __stdcall PpmDeepestHardwareIdleState(_PPM_IDLE_STATES *IdleStates){
UINT8 result;
unsigned int ProcessorIdleCount;
unsigned __int8 *p_StateType;
__int64 v4;
UINT8 v5;
result = 1;
if( IdleStates )
{
ProcessorIdleCount = IdleStates->ProcessorIdleCount;
if( ProcessorIdleCount )
{
p_StateType = &IdleStates->State[0].StateType;
v4 = ProcessorIdleCount;
do
{
v5 = result;
result = *p_StateType;
p_StateType += 248;
if( result <= v5 )
result = v5;
--v4;
}
while( v4 );
}
}
return result;
}Referenced by:
PpmInstallNewIdleStates