Merge "sched: Fix CPU selection when all online CPUs are isolated"
This commit is contained in:
commit
f02700dfc6
1 changed files with 6 additions and 1 deletions
|
@ -1590,7 +1590,7 @@ static int select_fallback_rq(int cpu, struct task_struct *p, bool allow_iso)
|
||||||
{
|
{
|
||||||
int nid = cpu_to_node(cpu);
|
int nid = cpu_to_node(cpu);
|
||||||
const struct cpumask *nodemask = NULL;
|
const struct cpumask *nodemask = NULL;
|
||||||
enum { cpuset, possible, fail } state = cpuset;
|
enum { cpuset, possible, fail, bug } state = cpuset;
|
||||||
int dest_cpu;
|
int dest_cpu;
|
||||||
int isolated_candidate = -1;
|
int isolated_candidate = -1;
|
||||||
|
|
||||||
|
@ -1650,6 +1650,11 @@ static int select_fallback_rq(int cpu, struct task_struct *p, bool allow_iso)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case fail:
|
case fail:
|
||||||
|
allow_iso = true;
|
||||||
|
state = bug;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case bug:
|
||||||
BUG();
|
BUG();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue