diff options
author | Chris Redpath <chris.redpath@arm.com> | 2013-10-11 11:44:58 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-10-11 15:07:17 +0100 |
commit | d73babce9a77f8143136fe0d7b6c1ae44b5652dc (patch) | |
tree | 8d035543c22e4b67b3c298c4b6946ac933a486d3 | |
parent | c2111520cfc682629fd75d0741ffee78b3b940ab (diff) |
sched: HMP: Change default HMP thresholds
When the up-threshold is at 512 on TC2, behaviour looks OK since
the graphic-related tasks are very heavy due to lack of a GPU.
Increasing the up-threshold does not reduce power consumption.
When a GPU is present, graphic tasks are much less CPU-heavy and
so additional power may be saved by having a higher threshold.
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r-- | kernel/sched/fair.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 754634e774a..62a93c62a84 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -3663,15 +3663,13 @@ static struct sched_entity *hmp_get_lightest_task( * Migration thresholds should be in the range [0..1023] * hmp_up_threshold: min. load required for migrating tasks to a faster cpu * hmp_down_threshold: max. load allowed for tasks migrating to a slower cpu - * The default values (512, 256) offer good responsiveness, but may need - * tweaking suit particular needs. * * hmp_up_prio: Only up migrate task with high priority (<hmp_up_prio) * hmp_next_up_threshold: Delay before next up migration (1024 ~= 1 ms) * hmp_next_down_threshold: Delay before next down migration (1024 ~= 1 ms) */ -unsigned int hmp_up_threshold = 512; -unsigned int hmp_down_threshold = 256; +unsigned int hmp_up_threshold = 700; +unsigned int hmp_down_threshold = 512; #ifdef CONFIG_SCHED_HMP_PRIO_FILTER unsigned int hmp_up_prio = NICE_TO_PRIO(CONFIG_SCHED_HMP_PRIO_FILTER_VAL); #endif |