From: Chris Redpath Date: Thu, 9 Jan 2014 10:40:30 +0000 (+0000) Subject: sched: hmp: Change TC2 packing config to disabled default if present X-Git-Tag: firefly_0821_release~3680^2~16^2^2~22 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ba8ed8301f5bca4a44c80e2173c66391b76898df;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Jon Medhurst --- diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 28debe3047b5..d89f4a8ddf41 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -3676,12 +3676,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