ANDROID: sched/fair: initialise util_est values to 0 on fork
authorChris Redpath <chris.redpath@arm.com>
Tue, 23 Oct 2018 16:43:34 +0000 (17:43 +0100)
committerChris Redpath <chris.redpath@arm.com>
Tue, 23 Oct 2018 17:05:34 +0000 (18:05 +0100)
commitff26b00b484bd75ac1988c1ffc0b710ccf25d7ac
tree3c8c49d2c95158044dd3c62376a48d31cdad2710
parenta3ac63b1887338cd9d60b9290648b8cac4102fe9
ANDROID: sched/fair: initialise util_est values to 0 on fork

Since "sched/fair: Align PELT windows between cfs_rq and its se" the
upstream kernel has initialised the whole content of sched_avg to zero
on fork. When util_est was backported, we missed this and so ended up
with util_est values copied from the parent task.

Add the zero initialisation which is present upstream and ensure that
util_est values always start from a known point.

Fixes: 700f1172f7a7 ("BACKPORT: sched/fair: Add util_est on top of PELT")
Reported-by: Puja Gupta <pujag@quicinc.com>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Cc: Patrick Bellasi <patrick.bellasi@arm.com>
Cc: Todd Kjos <tkjos@google.com>
Cc: Saravana Kannan <skannan@codeaurora.org>
Change-Id: I06995e4320d606a52761d0e773baf28fcd1e2680
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c