Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9b1af1c authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched/fair: Bring sched_smp_overlap_capacity out of WALT



sched_smp_overlap_capacity decideds the packing on the primary
cluster on a SMP system with more than 1 cluster. Currently this
threshold is defined in WALT but it is accessed outside WALT code.
Bring it out of WALT to fix compilation issue when WALT is disabled.

Change-Id: I731e736f7a3717ff9998a1d2cdbc6709f5ce1c4e
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 398bb7db
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6890,6 +6890,7 @@ static int start_cpu(bool boosted)
	return walt_start_cpu(start_cpu);
}

unsigned int sched_smp_overlap_capacity;
static inline int find_best_target(struct task_struct *p, int *backup_cpu,
				   bool boosted, bool prefer_idle,
				   struct find_best_target_env *fbt_env)
+0 −1
Original line number Diff line number Diff line
@@ -2193,7 +2193,6 @@ static void sort_clusters(void)

int __read_mostly min_power_cpu;

unsigned int sched_smp_overlap_capacity;
void walt_sched_energy_populated_callback(void)
{
	struct sched_cluster *cluster;