From e6ead20113aa5193c542f2a785ad4ac62b2bb3df Mon Sep 17 00:00:00 2001 From: Ashay Jaiswal Date: Mon, 14 Mar 2022 21:48:50 +0530 Subject: [PATCH] sched: walt: update usage of "strict_nrrun" "strict_nrrun" is used to make sure silver cluster helps when gold cluster is loaded with task, restrict "strict_nrrun" usage only if cpu topology has more than 1 cluster. Change-Id: I5c0b71176d4abdc3be78e26b99c8c6ce70da5822 Signed-off-by: Ashay Jaiswal --- kernel/sched/walt/core_ctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/walt/core_ctl.c b/kernel/sched/walt/core_ctl.c index e995f316ba76..b69e15641823 100644 --- a/kernel/sched/walt/core_ctl.c +++ b/kernel/sched/walt/core_ctl.c @@ -654,7 +654,8 @@ static int compute_cluster_nr_strict_need(int index) struct cluster_data *cluster; int nr_strict_need = 0; - if (index != 0) + /* For single cluster skip calculations */ + if ((index != 0) || (num_clusters < 2)) return 0; for_each_cluster(cluster, index) {