From 618298cf3699a973de22bc854336d0109971beba Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Fri, 29 Jan 2021 11:25:35 +0530 Subject: [PATCH] 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 --- kernel/sched/walt/core_ctl.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/kernel/sched/walt/core_ctl.c b/kernel/sched/walt/core_ctl.c index 193dd23777c2..e4fff356a4c4 100644 --- a/kernel/sched/walt/core_ctl.c +++ b/kernel/sched/walt/core_ctl.c @@ -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);