When boost=0 this will directly handled by energy_diff(); so if any case for boost > 0, we should give chance for task migration when PE filter fall into performance boost region. So this patch is to adjust gain table so can boost task when task boost value < 10%.
Signed-off-by: Leo Yan leo.yan@linaro.org --- kernel/sched/tune.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/kernel/sched/tune.c b/kernel/sched/tune.c index 5680748..6489f25 100644 --- a/kernel/sched/tune.c +++ b/kernel/sched/tune.c @@ -38,11 +38,11 @@ struct threshold_params { */ static struct threshold_params threshold_gains[] = { - { 0, 5 }, /* < 10% */ - { 1, 5 }, /* < 20% */ - { 2, 5 }, /* < 30% */ - { 3, 5 }, /* < 40% */ - { 4, 5 }, /* < 50% */ + { 1, 5 }, /* < 10% */ + { 2, 5 }, /* < 20% */ + { 3, 5 }, /* < 30% */ + { 4, 5 }, /* < 40% */ + { 5, 5 }, /* < 50% */ { 5, 4 }, /* < 60% */ { 5, 3 }, /* < 70% */ { 5, 2 }, /* < 80% */ -- 1.9.1