From 1ccb64e18f1e4c1f51c12b9dc31a881e2829b2b6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 6 Jun 2013 15:28:41 +0200 Subject: scheduler: Add start idle thread operation Add and use _Scheduler_Start_idle(). --- cpukit/score/inline/rtems/score/scheduler.inl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cpukit/score/inline/rtems') 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 -- cgit v1.2.3