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)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:29:32 +0000 (14:59 +0530)
commit6102e30f9d42c7827bb5f46c863d247bb4ae4038
treeefca51d95eb52fdb81fe54ec51d3d9169762dc49
parent3fc52a99e795d0086f402c36c45bb64e66e7b126
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