Skip to content

Commit

Permalink
sched: walt: update usage of "strict_nrrun"
Browse files Browse the repository at this point in the history
"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 <[email protected]>
  • Loading branch information
ashayj authored and Official-Ayrton990 committed Sep 6, 2022
1 parent 83afcaa commit e6ead20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/sched/walt/core_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e6ead20

Please sign in to comment.