[rtems commit] rtems: Initialize count of postponed jobs
Sebastian Huber
sebh at rtems.org
Thu Sep 9 13:16:19 UTC 2021
Module: rtems
Branch: 5
Commit: ff94ddcd841ab88e886fb94f70d204578a818c3a
Changeset: http://git.rtems.org/rtems/commit/?id=ff94ddcd841ab88e886fb94f70d204578a818c3a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Sep 9 15:03:29 2021 +0200
rtems: Initialize count of postponed jobs
The rtems_rate_monotonic_get_status() directive returns an arbitrary
number for the count of postponed jobs if it is called for a newly
created period object. Set the count of postponed jobs to zero during
object creation.
Close #4512.
---
cpukit/rtems/src/ratemoncreate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cpukit/rtems/src/ratemoncreate.c b/cpukit/rtems/src/ratemoncreate.c
index 3eff5f0..2e6b434 100644
--- a/cpukit/rtems/src/ratemoncreate.c
+++ b/cpukit/rtems/src/ratemoncreate.c
@@ -53,6 +53,7 @@ rtems_status_code rtems_rate_monotonic_create(
the_period->owner = _Thread_Get_executing();
the_period->state = RATE_MONOTONIC_INACTIVE;
+ the_period->postponed_jobs = 0;
_Watchdog_Preinitialize( &the_period->Timer, _Per_CPU_Get_by_index( 0 ) );
_Watchdog_Initialize( &the_period->Timer, _Rate_monotonic_Timeout );
More information about the vc
mailing list