From 54d755e3d2c0843279b55319d2796b85c6dbd560 Mon Sep 17 00:00:00 2001 From: Enrico Fraccaroli Date: Tue, 17 Jan 2023 13:33:09 -0500 Subject: [PATCH] Use round-robin as a backup scheduler. --- mentos/src/process/scheduler_algorithm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mentos/src/process/scheduler_algorithm.c b/mentos/src/process/scheduler_algorithm.c index 897f094..1400a39 100644 --- a/mentos/src/process/scheduler_algorithm.c +++ b/mentos/src/process/scheduler_algorithm.c @@ -222,10 +222,10 @@ static inline task_struct *__scheduler_aedf(runqueue_t *runqueue) /*...*/); return next; } - // If there are no tasks with deadline != 0 to execute, just pick another - // task by using CFS. #endif - return __scheduler_cfs(runqueue, false); + // If there are no tasks with deadline != 0 to execute, just pick another + // task by using Round-Robin. + return __scheduler_rr(runqueue, false); } /// @brief Executes the task with the earliest absolute DEADLINE among all the @@ -287,9 +287,9 @@ static inline task_struct *__scheduler_edf(runqueue_t *runqueue) } if (next) return next; - // If there are no periodic task to execute, just pick an aperiodic task by - // using CFS. #endif + // If there are no periodic task to execute, just pick an aperiodic task by + // using Round-Robin. return __scheduler_rr(runqueue, false); } @@ -353,9 +353,9 @@ static inline task_struct *__scheduler_rm(runqueue_t *runqueue) } if (next) return next; - // If there are no periodic task to execute, just pick an aperiodic task by - // using CFS. #endif + // If there are no periodic task to execute, just pick an aperiodic task by + // using Round-Robin. return __scheduler_rr(runqueue, false); }