score: _Scheduler_Thread_get_own_node()

Provide this function also for uni-processor configurations.
This commit is contained in:
Sebastian Huber
2014-07-09 11:20:23 +02:00
parent 9f228beaa6
commit c6048ee2c5

View File

@@ -98,14 +98,18 @@ RTEMS_INLINE_ROUTINE const Scheduler_Control *_Scheduler_Get_by_CPU(
return _Scheduler_Get_by_CPU_index( cpu_index ); return _Scheduler_Get_by_CPU_index( cpu_index );
} }
#if defined(RTEMS_SMP)
RTEMS_INLINE_ROUTINE Scheduler_Node *_Scheduler_Thread_get_own_node( RTEMS_INLINE_ROUTINE Scheduler_Node *_Scheduler_Thread_get_own_node(
const Thread_Control *the_thread const Thread_Control *the_thread
) )
{ {
#if defined(RTEMS_SMP)
return the_thread->Scheduler.own_node; return the_thread->Scheduler.own_node;
#else
return the_thread->Scheduler.node;
#endif
} }
#if defined(RTEMS_SMP)
RTEMS_INLINE_ROUTINE Thread_Control *_Scheduler_Node_get_user( RTEMS_INLINE_ROUTINE Thread_Control *_Scheduler_Node_get_user(
const Scheduler_Node *node const Scheduler_Node *node
) )