summaryrefslogtreecommitdiffstats
path: root/src/kernel/scheduler.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/scheduler.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/scheduler.C')
-rw-r--r--src/kernel/scheduler.C6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/scheduler.C b/src/kernel/scheduler.C
index 48902de7c..cb3cb5e95 100644
--- a/src/kernel/scheduler.C
+++ b/src/kernel/scheduler.C
@@ -27,13 +27,11 @@ void Scheduler::setNextRunnable()
{
t = CpuManager::getCurrentCPU()->idle_task;
// TODO: Set short decrementer.
- register uint64_t decrementer = TimeManager::getTimeSliceCount();
- asm volatile("mtdec %0" :: "r"(decrementer));
+ setDEC(TimeManager::getTimeSliceCount());
}
else // Set normal timeslice to decrementer.
{
- register uint64_t decrementer = TimeManager::getTimeSliceCount();
- asm volatile("mtdec %0" :: "r"(decrementer));
+ setDEC(TimeManager::getTimeSliceCount());
}
TaskManager::setCurrentTask(t);
OpenPOWER on IntegriCloud