sched: ems: reinforce comment of wakeup balance
authorPark Bumgyu <bumgyu.park@samsung.com>
Wed, 18 Jul 2018 01:32:01 +0000 (10:32 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:56 +0000 (20:24 +0300)
Change-Id: I8e0731eaa35ed746168955ede2501cad2c75ee42
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
kernel/sched/ems/core.c

index 82ae08d432ba8dea9c22d8a82d74b2159f8414ce..6876795ff6b242923e9b6c021c19b4916b20a779 100644 (file)
@@ -293,7 +293,7 @@ int exynos_wakeup_balance(struct task_struct *p, int prev_cpu, int sd_flag, int
         * Priority 6 : energy cpu
         *
         * A scheduling scheme based on cpu energy, find the least power consumption
-        * cpu referring energy table when assigning task.
+        * cpu with energy table when assigning task.
         */
        target_cpu = select_energy_cpu(p, prev_cpu, sd_flag, sync);
        if (cpu_selected(target_cpu)) {
@@ -303,6 +303,10 @@ int exynos_wakeup_balance(struct task_struct *p, int prev_cpu, int sd_flag, int
 
        /*
         * Priority 7 : proper cpu
+        *
+        * If the task failed to find a cpu to assign from the above conditions,
+        * it means that assigning task to any cpu does not have performance and
+        * power benefit. In this case, select cpu for balancing cpu utilization.
         */
        target_cpu = select_proper_cpu(p, prev_cpu);
        if (cpu_selected(target_cpu))