diff options
Diffstat (limited to 'litmus/sched_gsn_edf.c')
-rw-r--r-- | litmus/sched_gsn_edf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c index 7424c183d8b2..c0c63eba70ce 100644 --- a/litmus/sched_gsn_edf.c +++ b/litmus/sched_gsn_edf.c | |||
@@ -336,7 +336,7 @@ static noinline void job_completion(struct task_struct *t, int forced) | |||
336 | */ | 336 | */ |
337 | static void gsnedf_tick(struct task_struct* t) | 337 | static void gsnedf_tick(struct task_struct* t) |
338 | { | 338 | { |
339 | if (is_realtime(t) && budget_exhausted(t)) { | 339 | if (is_realtime(t) && budget_enforced(t) && budget_exhausted(t)) { |
340 | if (!is_np(t)) { | 340 | if (!is_np(t)) { |
341 | /* np tasks will be preempted when they become | 341 | /* np tasks will be preempted when they become |
342 | * preemptable again | 342 | * preemptable again |
@@ -399,7 +399,9 @@ static struct task_struct* gsnedf_schedule(struct task_struct * prev) | |||
399 | /* (0) Determine state */ | 399 | /* (0) Determine state */ |
400 | exists = entry->scheduled != NULL; | 400 | exists = entry->scheduled != NULL; |
401 | blocks = exists && !is_running(entry->scheduled); | 401 | blocks = exists && !is_running(entry->scheduled); |
402 | out_of_time = exists && budget_exhausted(entry->scheduled); | 402 | out_of_time = exists && |
403 | budget_enforced(entry->scheduled) && | ||
404 | budget_exhausted(entry->scheduled); | ||
403 | np = exists && is_np(entry->scheduled); | 405 | np = exists && is_np(entry->scheduled); |
404 | sleep = exists && get_rt_flags(entry->scheduled) == RT_F_SLEEP; | 406 | sleep = exists && get_rt_flags(entry->scheduled) == RT_F_SLEEP; |
405 | preempt = entry->scheduled != entry->linked; | 407 | preempt = entry->scheduled != entry->linked; |