From 4f5bebaa3e53351fa7dc50ae34159dfead6f4760 Mon Sep 17 00:00:00 2001 From: Daeyeong Lee Date: Wed, 23 May 2018 15:10:24 +0900 Subject: [PATCH] sched: ems: ontime: Change new entity's initial ontime load policy. Change-Id: I4688cd1fb459ca74092b386356843b37d361b07a Signed-off-by: Daeyeong Lee --- kernel/sched/ems/ontime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/ems/ontime.c b/kernel/sched/ems/ontime.c index 8fc47b248f17..9797f08b80d8 100644 --- a/kernel/sched/ems/ontime.c +++ b/kernel/sched/ems/ontime.c @@ -650,8 +650,8 @@ void ontime_new_entity_load(struct task_struct *parent, struct sched_entity *se) ontime = &se->ontime; - ontime->avg.load_sum = ontime_of(parent)->avg.load_sum; - ontime->avg.load_avg = ontime_of(parent)->avg.load_avg; + ontime->avg.load_sum = ontime_of(parent)->avg.load_sum >> 1; + ontime->avg.load_avg = ontime_of(parent)->avg.load_avg >> 1; ontime->avg.period_contrib = 1023; ontime->migrating = 0; -- 2.20.1