From: Park Bumgyu Date: Wed, 18 Jul 2018 01:32:01 +0000 (+0900) Subject: sched: ems: reinforce comment of wakeup balance X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e057cf758bb0ec4d7a5293994b515508f357deed;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sched: ems: reinforce comment of wakeup balance Change-Id: I8e0731eaa35ed746168955ede2501cad2c75ee42 Signed-off-by: Park Bumgyu --- diff --git a/kernel/sched/ems/core.c b/kernel/sched/ems/core.c index 82ae08d432ba..6876795ff6b2 100644 --- a/kernel/sched/ems/core.c +++ b/kernel/sched/ems/core.c @@ -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))