summaryrefslogtreecommitdiffstats
path: root/src/kernel/cpumgr.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2013-10-22 15:10:18 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-11-07 14:49:45 -0600
commit2d6ab3cf820134bd3086139adea76f51bbdceb64 (patch)
tree85111c6a6b313bfa5044e3e45ba9fb9df5890bc6 /src/kernel/cpumgr.C
parent7c27703341d61f28b204254ad96c3fea5840bb73 (diff)
downloadtalos-hostboot-2d6ab3cf820134bd3086139adea76f51bbdceb64.tar.gz
talos-hostboot-2d6ab3cf820134bd3086139adea76f51bbdceb64.zip
Handle winkle-wakeup times in slave cores.
Change-Id: I6978d66ecfdef57da9754e6251d2ac1d3d078210 RTC: 73559 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6851 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/kernel/cpumgr.C')
-rw-r--r--src/kernel/cpumgr.C7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/cpumgr.C b/src/kernel/cpumgr.C
index 759bcf18c..624751b5c 100644
--- a/src/kernel/cpumgr.C
+++ b/src/kernel/cpumgr.C
@@ -381,7 +381,7 @@ void CpuManager::executePeriodics(cpu_t * i_cpu)
}
-int CpuManager::startCore(uint64_t pir,uint64_t i_threads)
+void CpuManager::startCore(uint64_t pir,uint64_t i_threads)
{
size_t threads = getThreadCount();
pir = pir & ~(threads-1);
@@ -389,7 +389,8 @@ int CpuManager::startCore(uint64_t pir,uint64_t i_threads)
if (pir >=
(KERNEL_MAX_SUPPORTED_NODES * KERNEL_MAX_SUPPORTED_CPUS_PER_NODE))
{
- return -ENXIO;
+ TASK_SETRTN(TaskManager::getCurrentTask(), -ENXIO);
+ return;
}
for(size_t i = 0; i < threads; i++)
@@ -404,7 +405,7 @@ int CpuManager::startCore(uint64_t pir,uint64_t i_threads)
InterruptMsgHdlr::addCpuCore(pir);
- return 0;
+ return;
};
size_t CpuManager::getThreadCount()
OpenPOWER on IntegriCloud