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);
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue