diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2012-04-18 16:18:22 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-04-24 09:52:42 -0500 |
commit | f2dd13f86d803e241b835c5ca2a2a14d583ba01e (patch) | |
tree | b46bd46aa359a19e460f2382bb2127b08d0ec3e6 /src/include/kernel/cpumgr.H | |
parent | f4e49418fd0743ab0d143f0ab3c505baefe58bfa (diff) | |
download | talos-hostboot-f2dd13f86d803e241b835c5ca2a2a14d583ba01e.tar.gz talos-hostboot-f2dd13f86d803e241b835c5ca2a2a14d583ba01e.zip |
Allow kernel to shutdown-to-payload.
This code is currently unused, due to InitService not having the
payload address and the start_host_os IPL step being unimplemented.
For testing purposes the 'shutdown' call in initservice.C can be
changed to pass a non-zero base address (such as 256MB).
RTC: 40871
Change-Id: I0f4b6bae62ede1853aabbcb28082300005e31897
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/926
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Diffstat (limited to 'src/include/kernel/cpumgr.H')
-rw-r--r-- | src/include/kernel/cpumgr.H | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/kernel/cpumgr.H b/src/include/kernel/cpumgr.H index 3be17192c..4374d50a0 100644 --- a/src/include/kernel/cpumgr.H +++ b/src/include/kernel/cpumgr.H @@ -81,6 +81,11 @@ class CpuManager */ static void activateCPU(cpu_t * i_cpu); + /** @fn getCpuCount + * Return the number of active CPUs. + */ + static size_t getCpuCount() { return cv_cpuCount; } + protected: CpuManager(); |