summaryrefslogtreecommitdiffstats
path: root/src/kernel/cpumgr.C
diff options
context:
space:
mode:
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