Merge "sched: Fix CPU selection when all online CPUs are isolated"

This commit is contained in:
Linux Build Service Account 2016-10-03 10:35:02 -07:00 committed by Gerrit - the friendly Code Review server
commit f02700dfc6

View file

@ -1590,7 +1590,7 @@ static int select_fallback_rq(int cpu, struct task_struct *p, bool allow_iso)
{
int nid = cpu_to_node(cpu);
const struct cpumask *nodemask = NULL;
enum { cpuset, possible, fail } state = cpuset;
enum { cpuset, possible, fail, bug } state = cpuset;
int dest_cpu;
int isolated_candidate = -1;
@ -1650,6 +1650,11 @@ static int select_fallback_rq(int cpu, struct task_struct *p, bool allow_iso)
break;
case fail:
allow_iso = true;
state = bug;
break;
case bug:
BUG();
break;
}