From: 陳 佑達 on
Hi all,

Does anyone know how to disable cpu c state from application or
driver?
Because we have low performance issue when cpu went to C3 state.
But in some bios there is no option to disable cpu c state (or c3
state)


Thanks a lot!
From: 陳 佑達 on
On 3¤ë15¤é, ¤U¤È6®É04¤À, ³¯ ¦ö¹F <yoda.chc....(a)gmail.com> wrote:
> Hi all,
>
> Does anyone know how to disable cpu c state from application or
> driver?
> Because we have low performance issue when cpu went to C3 state.
> But in some bios there is no option to disable cpu c state (or c3
> state)
>
> Thanks a lot!

I use following code in XP but it doesn't !

unsigned int ActPwrSch;
MACHINE_PROCESSOR_POWER_POLICY Policy;
if(GetActivePwrScheme(&ActPwrSch))
{
if(ReadProcessorPwrScheme(ActPwrSch,&Policy))
{
printf("Read Power Scheme:\n");
if(Policy.ProcessorPolicyAc.DisableCStates!=0)
{
printf("DisableCStates=TRUE\n");
}
else
{
printf("DisableCStates=False\n");
}
Policy.ProcessorPolicyAc.DisableCStates=1;
if(WriteProcessorPwrScheme(ActPwrSch,&Policy))
{
printf("WriteProcessorPwrScheme succeed\n");
if(SetActivePwrScheme(ActPwrSch,0,0))
{
printf("SetActivePwrScheme succeed!!\n")
}
}

}
}
 | 
Pages: 1
Prev: Is Win32 dead?
Next: Windows messages