FIX: sched/tune: move schedtune_nornalize_energy into fair.c
authorPatrick Bellasi <patrick.bellasi@arm.com>
Fri, 29 Jul 2016 14:45:57 +0000 (15:45 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:29:32 +0000 (14:59 +0530)
commit9064187216fa872e72548618c5cced462e5bee24
tree06db6b48ab02e80b3bfcd73639643a3441e09be5
parentd3dd88bcc7a0b4ece9e52a8983c0025fec9d2f8a
FIX: sched/tune: move schedtune_nornalize_energy into fair.c

The energy normalization function is required to get the proper values
for the P-E space filtering function to work.
That normalization is part of the hot wakeup path and currently implemented
with a function call.

Moving the normalization function into fair.c allows the compiler to
further optimize that code by reducing overheads in the wakeup hot path.

Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
[jstultz: fwdported to 4.4]
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/sched/fair.c
kernel/sched/tune.c
kernel/sched/tune.h