diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-12-26 19:16:23 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-12-28 15:38:26 +0800 |
commit | af8ba51aca4e0b41a359fe467fb5c5b9baa75a05 (patch) | |
tree | eaed9f6d7f800eaede206fe9e853f55f5a42450f | |
parent | b6e45716c3ebccba9c576b1c39502dfa8e62c9df (diff) | |
download | edk2-platforms-af8ba51aca4e0b41a359fe467fb5c5b9baa75a05.tar.xz |
UefiCpuPkg/MpInitLib: Set new AP to idle state after switching BSP
We need to set new AP to idle state if it is expected to be waken up by new BSP
later.
Cc: Feng Tian <feng.tian@intel.com>
Cc: Kinney Michael D <michael.d.kinney@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
-rw-r--r-- | UefiCpuPkg/Library/MpInitLib/MpLib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpInitLib/MpLib.c index 77d855a29a..78d18b616e 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c @@ -1608,6 +1608,8 @@ SwitchBSPWorker ( //
if (!EnableOldBSP) {
SetApState (&CpuMpData->CpuData[CallerNumber], CpuStateDisabled);
+ } else {
+ SetApState (&CpuMpData->CpuData[CallerNumber], CpuStateIdle);
}
//
// Save new BSP number
|