diff options
author | Chris Redpath <chris.redpath@arm.com> | 2015-02-03 16:52:16 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:41:47 +0900 |
commit | 79febe68d970e2b88accf64933ddd2dd8f2284a4 (patch) | |
tree | 659f468db867d21b52d097ca7fa69eaba3ea4d13 /kernel/sched | |
parent | 8c54c67a7eda115e73863e38e2dfe5eb0c1987d4 (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>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'kernel/sched')
-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 8ca38e614c8a..b471ad275e90 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5158,15 +5158,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 |