score: Conditional _Thread_Priority_replace()

This function is only used in SMP configurations.
This commit is contained in:
Sebastian Huber
2022-07-05 08:13:50 +02:00
parent 2f6ee01e9e
commit 6e74cebb62
2 changed files with 4 additions and 0 deletions

View File

@@ -778,6 +778,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Priority_change(
); );
} }
#if defined(RTEMS_SMP)
/** /**
* @brief Replaces the victim priority node with the replacement priority node * @brief Replaces the victim priority node with the replacement priority node
* in the corresponding thread priority aggregation. * in the corresponding thread priority aggregation.
@@ -795,6 +796,7 @@ void _Thread_Priority_replace(
Priority_Node *victim_node, Priority_Node *victim_node,
Priority_Node *replacement_node Priority_Node *replacement_node
); );
#endif
/** /**
* @brief Updates the priority of all threads in the set * @brief Updates the priority of all threads in the set

View File

@@ -360,6 +360,7 @@ void _Thread_Priority_changed(
); );
} }
#if defined(RTEMS_SMP)
void _Thread_Priority_replace( void _Thread_Priority_replace(
Thread_Control *the_thread, Thread_Control *the_thread,
Priority_Node *victim_node, Priority_Node *victim_node,
@@ -375,6 +376,7 @@ void _Thread_Priority_replace(
replacement_node replacement_node
); );
} }
#endif
void _Thread_Priority_update( Thread_queue_Context *queue_context ) void _Thread_Priority_update( Thread_queue_Context *queue_context )
{ {