Loading kernel/sched/fair.c +13 −0 Original line number Diff line number Diff line Loading @@ -7425,6 +7425,19 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu, if (*backup_cpu == target_cpu) *backup_cpu = -1; /* * The next step of energy evaluation includes * prev_cpu. Drop target or backup if it is * same as prev_cpu */ if (*backup_cpu == prev_cpu) *backup_cpu = -1; if (target_cpu == prev_cpu) { target_cpu = *backup_cpu; *backup_cpu = -1; } return target_cpu; } Loading Loading
kernel/sched/fair.c +13 −0 Original line number Diff line number Diff line Loading @@ -7425,6 +7425,19 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu, if (*backup_cpu == target_cpu) *backup_cpu = -1; /* * The next step of energy evaluation includes * prev_cpu. Drop target or backup if it is * same as prev_cpu */ if (*backup_cpu == prev_cpu) *backup_cpu = -1; if (target_cpu == prev_cpu) { target_cpu = *backup_cpu; *backup_cpu = -1; } return target_cpu; } Loading