From 3b8d6ff03ea5accff8629a17f4ce1ce1947b10bd Mon Sep 17 00:00:00 2001 From: Alexander Winkowski Date: Sat, 14 Aug 2021 16:13:57 +0200 Subject: [PATCH] sched: fair: Modify capacity margins for atoll This is tuned to match energy model characteristics and scheduler efficiency enhancements. Change-Id: Ia60e1ea888457fa1c0c0273cdd4b0180f0a87abf Co-authored-by: Diep Quynh Signed-off-by: Alexander Winkowski --- kernel/sched/fair.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 139fc2c16eb4..415fa17f275a 100755 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -189,13 +189,13 @@ unsigned int capacity_margin = 1280; /* Migration margins */ unsigned int sysctl_sched_capacity_margin_up[MAX_MARGIN_LEVELS] = { - [0 ... MAX_MARGIN_LEVELS-1] = 1078}; /* ~5% margin */ + [0 ... MAX_MARGIN_LEVELS-1] = 1735}; /* ~41% margin */ unsigned int sysctl_sched_capacity_margin_down[MAX_MARGIN_LEVELS] = { - [0 ... MAX_MARGIN_LEVELS-1] = 1205}; /* ~15% margin */ + [0 ... MAX_MARGIN_LEVELS-1] = 2844}; /* ~64% margin */ unsigned int sched_capacity_margin_up[NR_CPUS] = { - [0 ... NR_CPUS-1] = 1078}; /* ~5% margin */ + [0 ... NR_CPUS-1] = 1735}; /* ~41% margin */ unsigned int sched_capacity_margin_down[NR_CPUS] = { - [0 ... NR_CPUS-1] = 1205}; /* ~15% margin */ + [0 ... NR_CPUS-1] = 2844}; /* ~64% margin */ #ifdef CONFIG_SCHED_WALT /* 1ms default for 20ms window size scaled to 1024 */