summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/CpuDxe/CpuMp.h
diff options
context:
space:
mode:
authorChen Fan <chen.fan.fnst@cn.fujitsu.com>2015-03-09 06:43:11 +0000
committervanjeff <vanjeff@Edk2>2015-03-09 06:43:11 +0000
commit68f06742379437e412f9699cc3c82421f4684b67 (patch)
treebc3463c7b76cf58494edb2e91ccc8c88f85816f5 /UefiCpuPkg/CpuDxe/CpuMp.h
parente033a1a83e84effb893899d9272778be5d7f2e1f (diff)
downloadedk2-platforms-68f06742379437e412f9699cc3c82421f4684b67.tar.xz
UefiCpuPkg/MpService: Put APs to sleep when not busy.
Add a new sleeping state for APs, when no procedure execution, put AP to sleep. when need to execute procedure, only need to wake up this AP by sent SIPI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17023 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuDxe/CpuMp.h')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuMp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuMp.h b/UefiCpuPkg/CpuDxe/CpuMp.h
index a6478c087c..cb3460f355 100644
--- a/UefiCpuPkg/CpuDxe/CpuMp.h
+++ b/UefiCpuPkg/CpuDxe/CpuMp.h
@@ -80,7 +80,8 @@ typedef enum {
CpuStateBlocked,
CpuStateReady,
CpuStateBusy,
- CpuStateFinished
+ CpuStateFinished,
+ CpuStateSleeping
} CPU_STATE;
/**