Sporadic scheduler: Fix how suspension time is calculated

This commit is contained in:
Gregory Nutt
2015-07-27 15:54:19 -06:00
parent e33c727520
commit a7322f5a6d
4 changed files with 63 additions and 148 deletions
+1 -4
View File
@@ -273,10 +273,7 @@ struct sporadic_s
uint8_t nrepls; /* Number of active replenishments */
uint32_t repl_period; /* Sporadic replenishment period */
uint32_t budget; /* Sporadic execution budget period */
#ifdef CONFIG_SCHED_TICKLESS
struct timespec sched_time; /* Time in ticks last processed */
#endif
uint32_t eventtime; /* Time thread suspended or [re-]started */
/* This is the last interval timer activated */