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)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2016 22:17:45 +0000 (15:17 -0700)
commit6ba071d89dd72b080b9f0e4abf587cad99d5320b
tree9ba5c8f11d9014a5c6a7dbc159dce3a98e3b9358
parent28e8cb961c2f71a89e391335a9304c3dd8b38d8f
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