mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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>
This commit is contained in:
committed by
Jon Medhurst
parent
c2111520cf
commit
d73babce9a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user