diff options
author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-05-15 23:07:43 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-05-15 23:07:43 -0400 |
commit | 7ec464fcc34e6387b660974cdfd4d91b38991ecb (patch) | |
tree | 4c98a6aa7fa41242154cf80148b249366a47d755 | |
parent | 77882c2dfcf1b849252e65624212be2efa93063f (diff) |
Fix how extra capacity is split between containers and migrating tasks
Based off patch by Peter (Zelin) Tong.
-rw-r--r-- | litmus/sched_edfsc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/litmus/sched_edfsc.c b/litmus/sched_edfsc.c index 3cc4d4d65b08..c8ad77c1b3e8 100644 --- a/litmus/sched_edfsc.c +++ b/litmus/sched_edfsc.c | |||
@@ -982,6 +982,7 @@ static enum hrtimer_restart container_boundary(struct hrtimer *timer) | |||
982 | // three or .. or m) and split the extra capacity evenly among | 982 | // three or .. or m) and split the extra capacity evenly among |
983 | // containers and the migrating tasks. In reality we'll need something | 983 | // containers and the migrating tasks. In reality we'll need something |
984 | // like that anyway, and it should at least be less dangerous. | 984 | // like that anyway, and it should at least be less dangerous. |
985 | u_extra = u_extra / 2; | ||
985 | remaining = num_cpus - i; | 986 | remaining = num_cpus - i; |
986 | for (; i < num_cpus; i++) { | 987 | for (; i < num_cpus; i++) { |
987 | struct task_struct* t = container_list[i]->container; | 988 | struct task_struct* t = container_list[i]->container; |