From 7ec464fcc34e6387b660974cdfd4d91b38991ecb Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Sat, 16 May 2020 03:07:43 +0000 Subject: Fix how extra capacity is split between containers and migrating tasks Based off patch by Peter (Zelin) Tong. --- litmus/sched_edfsc.c | 1 + 1 file changed, 1 insertion(+) 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) // three or .. or m) and split the extra capacity evenly among // containers and the migrating tasks. In reality we'll need something // like that anyway, and it should at least be less dangerous. + u_extra = u_extra / 2; remaining = num_cpus - i; for (; i < num_cpus; i++) { struct task_struct* t = container_list[i]->container; -- cgit v1.2.2