diff options
-rw-r--r-- | include/litmus/litmus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index 5d20276e44f4..867239875eef 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h | |||
@@ -88,7 +88,7 @@ inline static int budget_exhausted(struct task_struct* t) | |||
88 | inline static lt_t budget_remaining(struct task_struct* t) | 88 | inline static lt_t budget_remaining(struct task_struct* t) |
89 | { | 89 | { |
90 | if (!budget_exhausted(t)) | 90 | if (!budget_exhausted(t)) |
91 | return get_exec_time(t) - get_exec_cost(t); | 91 | return get_exec_cost(t) - get_exec_time(t); |
92 | else | 92 | else |
93 | /* avoid overflow */ | 93 | /* avoid overflow */ |
94 | return 0; | 94 | return 0; |