Use the last budgeted time from the last timer started

This commit is contained in:
Gregory Nutt
2015-07-27 13:13:30 -06:00
parent 8c754ccd4f
commit e66e2f5c0f
2 changed files with 55 additions and 34 deletions
+5 -2
View File
@@ -272,14 +272,17 @@ struct sporadic_s
uint8_t nrepls; /* Number of active replenishments */
uint32_t repl_period; /* Sporadic replenishment period */
uint32_t budget; /* Sporadic execution budget period */
uint32_t last; /* Last budget time */
uint32_t pending; /* Unrealized, pending execution budget */
#ifdef CONFIG_SCHED_TICKLESS
struct timespec sched_time; /* Time in ticks last processed */
#endif
/* This is the list of replenishment intervals */
/* This is the last interval timer activated */
FAR struct replenishment_s *active;
/* This is the list of replenishment interval timers */
struct replenishment_s replenishments[CONFIG_SCHED_SPORADIC_MAXREPL];
};