From 37921ca6be838402cbd6cb408a7a3f7aa5cea6f7 Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Wed, 29 Apr 2015 16:16:49 +0530 Subject: sched: don't inherit initial task load from the parent child task is not supposed to inherit initial task load attribute from the parent. Reset the child's init_load_pct attribute during fork. Change-Id: I458b121f10f996fda364e97b51aaaf6c345c1dbb Signed-off-by: Pavankumar Kondeti --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 868211061673..06639a3def40 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4345,7 +4345,7 @@ void init_new_task_load(struct task_struct *p) u32 init_load_pelt = sched_init_task_load_pelt; u32 init_load_pct = current->init_load_pct; - /* Note: child's init_load_pct itself would be 0 */ + p->init_load_pct = 0; memset(&p->ravg, 0, sizeof(struct ravg)); if (init_load_pct) { -- cgit v1.2.3