mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
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:
parent
9f4c2201c2
commit
618298cf36
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user