sched/walt: Remove should_we_pause() function

should_we_pause() always return true. Update the conditional
check at the caller and remove this function.

Change-Id: I085bc7737888fcafc74350a7d22176ae27bdece2
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
Pavankumar Kondeti 2021-01-29 11:25:35 +05:30 committed by Rishabh Bhatnagar
parent 9f4c2201c2
commit 618298cf36

View File

@ -989,11 +989,6 @@ static void move_cpu_lru(struct cpu_data *cpu_data)
spin_unlock_irqrestore(&state_lock, flags);
}
static bool should_we_pause(int cpu, struct cluster_data *cluster)
{
return true;
}
static void try_to_pause(struct cluster_data *cluster, unsigned int need,
struct cpumask *pause_cpus)
{
@ -1027,9 +1022,6 @@ static void try_to_pause(struct cluster_data *cluster, unsigned int need,
if (cluster->nr_not_preferred_cpus && !c->not_preferred)
continue;
if (!should_we_pause(c->cpu, cluster))
continue;
spin_unlock_irqrestore(&state_lock, flags);
pr_debug("Trying to pause CPU%u\n", c->cpu);