diff --git a/cpukit/include/rtems/score/priorityimpl.h b/cpukit/include/rtems/score/priorityimpl.h index f6e7f10029..a45a2268a5 100644 --- a/cpukit/include/rtems/score/priorityimpl.h +++ b/cpukit/include/rtems/score/priorityimpl.h @@ -335,7 +335,9 @@ static inline void _Priority_Set_action_node( Priority_Node *node ) { +#if defined(RTEMS_SMP) _Assert( aggregation->Action.next == NULL ); +#endif aggregation->Action.node = node; } @@ -350,7 +352,9 @@ static inline void _Priority_Set_action_type( Priority_Action_type type ) { +#if defined(RTEMS_SMP) _Assert( aggregation->Action.next == NULL ); +#endif aggregation->Action.type = type; } @@ -368,7 +372,9 @@ static inline void _Priority_Set_action( Priority_Action_type type ) { +#if defined(RTEMS_SMP) _Assert( aggregation->Action.next == NULL ); +#endif aggregation->Action.node = node; aggregation->Action.type = type; } diff --git a/cpukit/score/src/threadqops.c b/cpukit/score/src/threadqops.c index e469241eab..ff26b8e66b 100644 --- a/cpukit/score/src/threadqops.c +++ b/cpukit/score/src/threadqops.c @@ -68,7 +68,7 @@ void _Thread_queue_Do_nothing_priority_actions( Priority_Actions *priority_actions ) { -#if defined(RTEMS_DEBUG) +#if defined(RTEMS_DEBUG) && defined(RTEMS_SMP) Priority_Aggregation *priority_aggregation; priority_aggregation = _Priority_Actions_move( priority_actions );