Fixup!: sched/fair.c: Set SchedTune specific struct energy_env.task
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Sun, 4 Dec 2016 17:29:34 +0000 (17:29 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 21 Jun 2017 11:07:28 +0000 (16:37 +0530)
commitd7b0bec53b464854c43f9b0b8e29578c7f7418ac
tree5344def3c02e049c7679179dcefd6872e9033dd8
parent91c0c70f255886a8d55fc563cfec612ba78f52b0
Fixup!: sched/fair.c: Set SchedTune specific struct energy_env.task

This has to be done in the caller function of energy_diff() version of
SchedTune to avoid Null pointer dereference in energy_diff().

Change-Id: I3f0f68dbd11efb15bbb3b1832f8294419ed85241
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
(cherry picked from commit 14531d4e245d063f713ee5ed835df958e6c7838f)
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c