本文整理汇总了C++中OPTION_MULTISOCKET_CONFIGURATION::GetNumberOfSystemPmSteps方法的典型用法代码示例。如果您正苦于以下问题:C++ OPTION_MULTISOCKET_CONFIGURATION::GetNumberOfSystemPmSteps方法的具体用法?C++ OPTION_MULTISOCKET_CONFIGURATION::GetNumberOfSystemPmSteps怎么用?C++ OPTION_MULTISOCKET_CONFIGURATION::GetNumberOfSystemPmSteps使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OPTION_MULTISOCKET_CONFIGURATION
的用法示例。
在下文中一共展示了OPTION_MULTISOCKET_CONFIGURATION::GetNumberOfSystemPmSteps方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetWarmResetFlag
/**
* Perform the "BIOS Requirements for P-State Initialization and Transitions."
*
* This is the generic arbiter code to be executed by the BSC. The system power
* management init tables will be traversed. This must be run by the system BSC
* only.
*
* @param[in] CpuEarlyParams Required input parameters for early CPU initialization
* @param[in] StdHeader Config handle for library and services
*
* @return Most severe AGESA_STATUS level that any system processor encountered
*
*/
AGESA_STATUS
PmInitializationAtEarly (
IN AMD_CPU_EARLY_PARAMS *CpuEarlyParams,
IN AMD_CONFIG_PARAMS *StdHeader
)
{
UINT8 i;
UINT8 NumberOfSystemWideSteps;
AP_TASK TaskPtr;
AGESA_STATUS ReturnCode;
WARM_RESET_REQUEST Request;
// Determine the number of steps to perform
OptionMultiSocketConfiguration.GetNumberOfSystemPmSteps (&NumberOfSystemWideSteps, StdHeader);
// Traverse the PM init table
TaskPtr.FuncAddress.PfApTaskIC = PerformThisPmStep;
TaskPtr.DataTransfer.DataSizeInDwords = 1;
TaskPtr.DataTransfer.DataPtr = &i;
TaskPtr.DataTransfer.DataTransferFlags = 0;
TaskPtr.ExeFlags = PASS_EARLY_PARAMS;
for (i = 0; i < NumberOfSystemWideSteps; ++i) {
IDS_HDT_CONSOLE (CPU_TRACE, " Perform PM init step %d\n", i);
OptionMultiSocketConfiguration.BscRunCodeOnAllSystemCore0s (&TaskPtr, StdHeader, CpuEarlyParams);
}
// GoToMemInitPstateCore0 only if there is no pending warm reset.
GetWarmResetFlag (StdHeader, &Request);
if (Request.RequestBit == FALSE) {
TaskPtr.FuncAddress.PfApTaskC = GoToMemInitPstateCore0;
TaskPtr.DataTransfer.DataSizeInDwords = 0;
TaskPtr.ExeFlags = PASS_EARLY_PARAMS;
IDS_HDT_CONSOLE (CPU_TRACE, " Transition all cores to POST P-state\n");
OptionMultiSocketConfiguration.BscRunCodeOnAllSystemCore0s (&TaskPtr, StdHeader, CpuEarlyParams);
}
// Retrieve/Process any errors
ReturnCode = OptionMultiSocketConfiguration.BscRetrievePmEarlyInitErrors (StdHeader);
return (ReturnCode);
}