diff options
author | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2015-04-29 16:16:49 +0530 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:01:58 -0700 |
commit | 37921ca6be838402cbd6cb408a7a3f7aa5cea6f7 (patch) | |
tree | e2bd82de7a31ad581c489b820e8e62ece02dd868 /kernel | |
parent | 6e08a8c77afc2bca795b96af124cc23eab1633ea (diff) |
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 <pkondeti@codeaurora.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |