[rtems commit] score: Conditional _Thread_Priority_replace()
Sebastian Huber
sebh at rtems.org
Thu Jul 7 06:54:06 UTC 2022
Module: rtems
Branch: master
Commit: 6e74cebb620ecf78a4ae74ae51ec982606ecff1b
Changeset: http://git.rtems.org/rtems/commit/?id=6e74cebb620ecf78a4ae74ae51ec982606ecff1b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jul 5 08:13:50 2022 +0200
score: Conditional _Thread_Priority_replace()
This function is only used in SMP configurations.
---
cpukit/include/rtems/score/threadimpl.h | 2 ++
cpukit/score/src/threadchangepriority.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index 10800aa023..37932b367d 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -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
* in the corresponding thread priority aggregation.
@@ -795,6 +796,7 @@ void _Thread_Priority_replace(
Priority_Node *victim_node,
Priority_Node *replacement_node
);
+#endif
/**
* @brief Updates the priority of all threads in the set
diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c
index 80f030fdc6..0ddfd1cf9b 100644
--- a/cpukit/score/src/threadchangepriority.c
+++ b/cpukit/score/src/threadchangepriority.c
@@ -360,6 +360,7 @@ void _Thread_Priority_changed(
);
}
+#if defined(RTEMS_SMP)
void _Thread_Priority_replace(
Thread_Control *the_thread,
Priority_Node *victim_node,
@@ -375,6 +376,7 @@ void _Thread_Priority_replace(
replacement_node
);
}
+#endif
void _Thread_Priority_update( Thread_queue_Context *queue_context )
{
More information about the vc
mailing list