FIXUP: sched/tune: fix payoff calculation for boost region
authorPatrick Bellasi <patrick.bellasi@arm.com>
Thu, 28 Jul 2016 16:38:25 +0000 (17:38 +0100)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2016 22:18:40 +0000 (15:18 -0700)
commit254f5095a8143f0b852c5db7672957cf3b4d65d3
treee2ddd7e2d994d11c6428d3eab8bb9c5e3795c67b
parent00aae8d5d5cd6f28d7603e0c1c4ac5cf91cb4aa3
FIXUP: sched/tune: fix payoff calculation for boost region

The definition of the acceptance regions as well as the translation of
these regions into a payoff value was both wrong which turned out in:
a) a wrong definition of payoff for the performance boost region
b) a correct "by chance" definition of the payoff for the performance
   constraint region (i.e. two sign errors together fixing the formula)

This patch provides a better description of the cut regions as well as
a fixed version of the payoff computations, which are now reduced to a
single formula usable for both cases.

Reported-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
kernel/sched/tune.c