summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-06 15:28:41 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-14 16:26:07 +0200
commit1ccb64e18f1e4c1f51c12b9dc31a881e2829b2b6 (patch)
treecc5940c391f4e6fcdd63ec31fd129126d84b2329 /cpukit/score/inline
parentscore: Simplify _Thread_Create_idle() (diff)
downloadrtems-1ccb64e18f1e4c1f51c12b9dc31a881e2829b2b6.tar.bz2
scheduler: Add start idle thread operation
Add and use _Scheduler_Start_idle().
Diffstat (limited to 'cpukit/score/inline')
-rw-r--r--cpukit/score/inline/rtems/score/scheduler.inl16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/score/inline/rtems/score/scheduler.inl b/cpukit/score/inline/rtems/score/scheduler.inl
index e3ced3900f..3201c23e99 100644
--- a/cpukit/score/inline/rtems/score/scheduler.inl
+++ b/cpukit/score/inline/rtems/score/scheduler.inl
@@ -208,6 +208,22 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Tick( void )
_Scheduler.Operations.tick();
}
+/**
+ * @brief Starts the idle thread for a particular processor.
+ *
+ * @param[in/out] thread The idle thread for the processor.
+ * @parma[in/out] processor The processor for the idle thread.
+ *
+ * @see _Thread_Create_idle().
+ */
+RTEMS_INLINE_ROUTINE void _Scheduler_Start_idle(
+ Thread_Control *thread,
+ Per_CPU_Control *processor
+)
+{
+ ( *_Scheduler.Operations.start_idle )( thread, processor );
+}
+
/** @} */
#endif