summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorChris Redpath <chris.redpath@arm.com>2015-02-04 14:42:51 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:41:55 +0900
commitb7bc96922082d895df72eba74adc268dea14a799 (patch)
tree43ff43acab032420b6bbc56c22ad43b6ebce96b6 /kernel
parent9ad0a05a2fd2984781fd4de3be32899794bb09b4 (diff)
sched: hmp: Change TC2 packing config to disabled default if present
Since TC2 power curves don't really have a utilisation hotspot where packing makes sense, if it is present for a TC2 system at least make it default to disabled. Signed-off-by: Chris Redpath <chris.redpath@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')
-rw-r--r--kernel/sched/fair.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 6634a22f85ce..2e2dc55bd189 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5172,12 +5172,13 @@ unsigned int hmp_next_up_threshold = 4096;
unsigned int hmp_next_down_threshold = 4096;
#ifdef CONFIG_SCHED_HMP_LITTLE_PACKING
-unsigned int hmp_packing_enabled = 1;
#ifndef CONFIG_ARCH_VEXPRESS_TC2
+unsigned int hmp_packing_enabled = 1;
unsigned int hmp_full_threshold = (NICE_0_LOAD * 9) / 8;
#else
/* TC2 has a sharp consumption curve @ around 800Mhz, so
we aim to spread the load around that frequency. */
+unsigned int hmp_packing_enabled;
unsigned int hmp_full_threshold = 650; /* 80% of the 800Mhz freq * NICE_0_LOAD */
#endif
#endif