summaryrefslogtreecommitdiffstats
path: root/src/kernel/cpumgr.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-03-31 16:16:49 -0500
committerPatrick Williams <iawillia@us.ibm.com>2011-03-31 16:16:49 -0500
commitec8abe32d3eccc9ef46341a045097b5d4abde886 (patch)
tree37db598962eb8a0bbbcd3d6722dbb35e89461de6 /src/kernel/cpumgr.C
parent17166038aa59e351f7815255e680ce4637c500f0 (diff)
downloadtalos-hostboot-ec8abe32d3eccc9ef46341a045097b5d4abde886.tar.gz
talos-hostboot-ec8abe32d3eccc9ef46341a045097b5d4abde886.zip
Eliminate race condition in updating task->cpu pointer.
Diffstat (limited to 'src/kernel/cpumgr.C')
-rw-r--r--src/kernel/cpumgr.C3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/cpumgr.C b/src/kernel/cpumgr.C
index 0f225fc13..984396020 100644
--- a/src/kernel/cpumgr.C
+++ b/src/kernel/cpumgr.C
@@ -19,8 +19,7 @@ CpuManager::CpuManager()
cpu_t* CpuManager::getCurrentCPU()
{
- register task_t* current_task = (task_t*) getSPRG3();
- return current_task->cpu;
+ return cv_cpus[getPIR()];
}
void CpuManager::init()
OpenPOWER on IntegriCloud