sched: ems: Don't check lbt_bring_overutilize when wake balance
authorDaeyeong Lee <daeyeong.lee@samsung.com>
Thu, 14 Jun 2018 06:56:50 +0000 (15:56 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:56 +0000 (20:24 +0300)
Change-Id: I2b3cd086d0a4329270c7b877967897ce4735e5a0
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
kernel/sched/ems/core.c
kernel/sched/ems/ems.h
kernel/sched/ems/energy.c
kernel/sched/ems/lbt.c

index a293ffe8f2124afa3d70a5f740b11377175292f5..b06f5d8f25fbc5157d6a64d3e170c4f320888531 100644 (file)
@@ -146,14 +146,6 @@ static int select_proper_cpu(struct task_struct *p, int prev_cpu)
                        if (new_util > capacity_orig)
                                continue;
 
-                       /*
-                        * According to the criteria determined by the LBT(Load
-                        * Balance trigger), the cpu that becomes overutilized
-                        * when the task is assigned is skipped.
-                        */
-                       if (lbt_bring_overutilize(i, p))
-                               continue;
-
                        /*
                         * Best target) lowest utilization among lowest-cap cpu
                         *
index 5b3a5ae794e836ba369f006cbcf82397599b4d57..c7887c3b698ceebca3b72ce3826c77c87bbe34f0 100644 (file)
@@ -21,7 +21,6 @@ extern int ontime_task_wakeup(struct task_struct *p);
 extern int select_perf_cpu(struct task_struct *p);
 extern int global_boosting(struct task_struct *p);
 extern int global_boosted(void);
-extern bool lbt_bring_overutilize(int cpu, struct task_struct *p);
 extern int select_energy_cpu(struct task_struct *p, int prev_cpu, int sd_flag, int sync);
 extern int band_play_cpu(struct task_struct *p);
 
index ee6a74dfa18e7638534656a492a3cb27e2a48485..b3490474d167856dca7e4e5c0548d1b66dadb1a5 100644 (file)
@@ -89,14 +89,6 @@ static void find_eco_target(struct eco_env *eenv)
                if (new_util > capacity_orig)
                        continue;
 
-               /*
-                * According to the criteria determined by the LBT(Load
-                * Balance trigger), the cpu that becomes overutilized when
-                * the task is assigned is skipped.
-                */
-               if (lbt_bring_overutilize(cpu, p))
-                       continue;
-
                /*
                 * Backup target) shallowest idle cpu among min-cap cpu
                 *
index 5104b4f7479013a4e1b59c848df8b0d2c89db82f..74587979cb8b8480bc26cfd1cb232fd8ff98650c 100644 (file)
@@ -87,23 +87,6 @@ bool lbt_overutilized(int cpu, int level)
        return overutilized;
 }
 
-bool lbt_bring_overutilize(int cpu, struct task_struct *p)
-{
-       struct sched_domain *sd;
-       struct lbt_overutil *ou = per_cpu(lbt_overutil, cpu);
-       unsigned long util_sum = cpu_util_wake(cpu, p) + task_util(p);
-
-       if (!ou)
-               return false;
-
-       for_each_domain(cpu, sd) {
-               if (util_sum > ou[sd->level].capacity)
-                       return true;
-       }
-
-       return false;
-}
-
 void update_lbt_overutil(int cpu, unsigned long capacity)
 {
        struct lbt_overutil *ou = per_cpu(lbt_overutil, cpu);