[rtems commit] score: Use _Freechain_Push()
Sebastian Huber
sebh at rtems.org
Wed Sep 2 16:03:09 UTC 2020
Module: rtems
Branch: master
Commit: 159db411662deb72f9d312e4cb38caf9beb9fd4f
Changeset: http://git.rtems.org/rtems/commit/?id=159db411662deb72f9d312e4cb38caf9beb9fd4f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Apr 8 11:31:02 2020 +0200
score: Use _Freechain_Push()
The nodes are never NULL.
Update #3959.
---
cpukit/score/src/threadinitialize.c | 2 +-
cpukit/score/src/threadrestart.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index d85615e..4872f84 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -275,7 +275,7 @@ failed:
}
#endif
- _Freechain_Put(
+ _Freechain_Push(
&information->Thread_queue_heads.Free,
the_thread->Wait.spare_heads
);
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c
index c5db660..a2712fa 100644
--- a/cpukit/score/src/threadrestart.c
+++ b/cpukit/score/src/threadrestart.c
@@ -176,7 +176,7 @@ static void _Thread_Free( Thread_Control *the_thread )
#endif
#endif
- _Freechain_Put(
+ _Freechain_Push(
&information->Thread_queue_heads.Free,
the_thread->Wait.spare_heads
);
More information about the vc
mailing list