Skip to contentSkip to conversation

sched/fair: tiny clearup of -1

PATCH In review [email protected] 3 participants 3 messages Dec 5, 2014 – Dec 15, 2014 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/fair: tiny clearup of -1

From: zhang jun <[email protected]>

find_idlest_cpu don't return -1, so clearup it.

Cc Greg Kroah-Hartman <[email protected]>
Cc Hillf Danton <[email protected]>
Cc Vincent Guittot <[email protected]>
---
 kernel/sched/fair.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index ef2b104..bbf965f 100644
@@ -4596,7 +4596,7 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f
 		}
 
 		new_cpu = find_idlest_cpu(group, p, cpu);
-		if (new_cpu == -1 || new_cpu == cpu) {
+		if (new_cpu == cpu) {
 			/* Now try balancing at a lower domain level of cpu */
 			sd = sd->child;
 			continue;
Signature · 1 line
1.7.9.5