summaryrefslogtreecommitdiffstats
path: root/src/kernel/cpumgr.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-04-16 13:39:38 -0500
committerAndrew J. Geissler <andrewg@us.ibm.com>2011-04-21 08:44:48 -0500
commit9f54bd8c6106915410f8023a92fd4943b9672819 (patch)
treed51517f78df14cb5a5b4dcca2378dfd3faf6ba0d /src/kernel/cpumgr.C
parentc13832aef84af9c2ebd1852a6baf6bb0f8913a7a (diff)
downloadtalos-hostboot-9f54bd8c6106915410f8023a92fd4943b9672819.tar.gz
talos-hostboot-9f54bd8c6106915410f8023a92fd4943b9672819.zip
Move inline mtdec into arch/ppc.H
Change-Id: I65b2be9a5a5166cd946033e34cedd87345e55979 Reviewed-on: http://gfwr801.rchland.ibm.com:8080/gerrit/4 Tested-by: Jenkins Server Tested-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'src/kernel/cpumgr.C')
-rw-r--r--src/kernel/cpumgr.C8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/kernel/cpumgr.C b/src/kernel/cpumgr.C
index 7a4e1c2bd..46d1baa93 100644
--- a/src/kernel/cpumgr.C
+++ b/src/kernel/cpumgr.C
@@ -68,9 +68,7 @@ void CpuManager::startCPU(ssize_t i)
if (currentCPU)
{
setSPRG3((uint64_t) cv_cpus[i]->idle_task);
-
- register uint64_t decrementer = TimeManager::getTimeSliceCount();
- asm volatile("mtdec %0" :: "r"(decrementer));
+ setDEC(TimeManager::getTimeSliceCount());
}
return;
}
@@ -78,9 +76,7 @@ void CpuManager::startCPU(ssize_t i)
void CpuManager::startSlaveCPU(cpu_t* cpu)
{
setSPRG3((uint64_t) cpu->idle_task);
-
- register uint64_t decrementer = TimeManager::getTimeSliceCount();
- asm volatile("mtdec %0" :: "r"(decrementer));
+ setDEC(TimeManager::getTimeSliceCount());
return;
}
OpenPOWER on IntegriCloud