Compartilhar via


OEMIdle (Compact 2013)

10/16/2014

This function places the CPU in the idle state when there are no threads ready to run.

Syntax

void OEMIdle(
  DWORD dwIdleParam 
); 

Parameters

  • dwIdleParam
    [in] Base value for program status register (PSR) to allow interrupts to be enabled. Not used by all CPU families.

Return Value

None.

Remarks

This function is called by the kernel.

Exceptions are blocked when this routine is called and must not be re-enabled unless the function is going to return immediately.

This function places the CPU into a reduced power state and stop it. It is important to be able to resume execution quickly upon receiving an interrupt.

For performance management data, this function can track the time it is being run by using the curridlelow and curridlehigh kernel global variables.

Requirements

Header

Developer Implemented

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Required OAL Functions
curridlelow
curridlehigh
OEMGetRealTime
OEMPowerOff