Thanks, I understand
—
VOID
EFIAPI
CpuSleep (
VOID
)
{
_asm {
hlt
}
}
---
On 05 марта 2014 г., at 21:02, Andrew Fish <af...@apple.com> wrote:
>
> On Mar 5, 2014, at 8:49 AM, Sergey Isakov <isakov...@bk.ru> wrote:
>
>> And where can I see hardware realization? It is just an infinite loop? Or
>> MWAIT? Or drop to C6 state?
>> Or this abstract for OEM decided what to do?
>>
>
> Usually the CpuDxe PI driver does this. Putting the CPU to sleep (hlt) is a
> huge win in power savings vs running code. The timer tick will wake the
> system back up.
> What state to use depends on the CPU architecture, so you could dial it down
> to a lower state if it makes sense.
>
> Thanks,
>
> Andrew Fish
>
> https://svn.code.sf.net/p/edk2/code/trunk/edk2/UefiCpuPkg/CpuDxe/CpuDxe.c
> https://svn.code.sf.net/p/edk2/code/trunk/edk2/ArmPkg/Drivers/CpuDxe/CpuDxe.c
> VOID
> EFIAPI
> IdleLoopEventCallback (
> IN EFI_EVENT Event,
> IN VOID *Context
> )
> {
> CpuSleep ();
> }
>
>
>> On 05 марта 2014 г., at 19:38, Andrew Fish <af...@apple.com> wrote:
>>
>>>
>>> On Mar 5, 2014, at 4:58 AM, Sergey Isakov <isakov...@bk.ru> wrote:
>>>
>>>> Sorry, CPU stress test? What is your purpose, to burn out your CPU?
>>>> At boot stage CPU works on one core and on maximum speed not regarding
>>>> what process is performed. It will not heated more or less.
>>>> CPU will heated at the same rate no matter what application is started.
>>>>
>>>
>>> Given EFI has an event model code that is running will burn a lot of power,
>>> making the APs do work would increase the workload on the system.
>>>
>>> The main power saving feature in the edk2 is the gIdleLoopEventGuid GUIDed
>>> event. This allows the system to go into a lower power mode while a
>>> gBS->WaitForEvent() call is running. Generally the DXE CPU driver produces
>>> this event. The gIdleLoopEventGuid event is signaled when there is no
>>> forward progress being made. At this point a timer tick must fire to make
>>> forward progress so the gIdleLoopEventGuid event idles the system until the
>>> next timer tick.
>>>
>>> When you are sitting a the shell prompt waiting for input the system is in
>>> a lower power state.
>>>
>>> Thanks,
>>>
>>> Andrew Fish
>>>
>>> https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdeModulePkg/Core/Dxe/Event/Event.c
>>> search for gIdleLoopEvent
>>>
>>>> On 05.03.2014, at 11:12, ritul guru (riguru) wrote:
>>>>
>>>>> Hi,
>>>>> Is there any efi utility for CPU stress test, like mprime, prime95 (which
>>>>> are windows utility)?
>>>>>
>>>>>
>>>>> Regards,
>>>>> Ritul
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Subversion Kills Productivity. Get off Subversion & Make the Move to
>>>>> Perforce.
>>>>> With Perforce, you get hassle-free workflows. Merge that actually works.
>>>>> Faster operations. Version large binaries. Built-in WAN optimization and
>>>>> the
>>>>> freedom to use Git, Perforce or both. Make the move to Perforce.
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________
>>>>> edk2-devel mailing list
>>>>> edk2-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Subversion Kills Productivity. Get off Subversion & Make the Move to
>>>> Perforce.
>>>> With Perforce, you get hassle-free workflows. Merge that actually works.
>>>> Faster operations. Version large binaries. Built-in WAN optimization and
>>>> the
>>>> freedom to use Git, Perforce or both. Make the move to Perforce.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________
>>>> edk2-devel mailing list
>>>> edk2-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Subversion Kills Productivity. Get off Subversion & Make the Move to
>>> Perforce.
>>> With Perforce, you get hassle-free workflows. Merge that actually works.
>>> Faster operations. Version large binaries. Built-in WAN optimization and
>>> the
>>> freedom to use Git, Perforce or both. Make the move to Perforce.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________
>>> edk2-devel mailing list
>>> edk2-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>>
>> ------------------------------------------------------------------------------
>> Subversion Kills Productivity. Get off Subversion & Make the Move to
>> Perforce.
>> With Perforce, you get hassle-free workflows. Merge that actually works.
>> Faster operations. Version large binaries. Built-in WAN optimization and the
>> freedom to use Git, Perforce or both. Make the move to Perforce.
>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries. Built-in WAN optimization and the
> freedom to use Git, Perforce or both. Make the move to Perforce.
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel