Loading kernel/sched/core.c +7 −6 Original line number Diff line number Diff line Loading @@ -5977,12 +5977,6 @@ int sched_isolate_cpu(int cpu) cpumask_andnot(&avail_cpus, cpu_online_mask, cpu_isolated_mask); /* We cannot isolate ALL cpus in the system */ if (cpumask_weight(&avail_cpus) == 1) { ret_code = -EINVAL; goto out; } if (!cpu_online(cpu)) { ret_code = -EINVAL; goto out; Loading @@ -5991,6 +5985,13 @@ int sched_isolate_cpu(int cpu) if (++cpu_isolation_vote[cpu] > 1) goto out; /* We cannot isolate ALL cpus in the system */ if (cpumask_weight(&avail_cpus) == 1) { --cpu_isolation_vote[cpu]; ret_code = -EINVAL; goto out; } /* * There is a race between watchdog being enabled by hotplug and * core isolation disabling the watchdog. When a CPU is hotplugged in Loading Loading
kernel/sched/core.c +7 −6 Original line number Diff line number Diff line Loading @@ -5977,12 +5977,6 @@ int sched_isolate_cpu(int cpu) cpumask_andnot(&avail_cpus, cpu_online_mask, cpu_isolated_mask); /* We cannot isolate ALL cpus in the system */ if (cpumask_weight(&avail_cpus) == 1) { ret_code = -EINVAL; goto out; } if (!cpu_online(cpu)) { ret_code = -EINVAL; goto out; Loading @@ -5991,6 +5985,13 @@ int sched_isolate_cpu(int cpu) if (++cpu_isolation_vote[cpu] > 1) goto out; /* We cannot isolate ALL cpus in the system */ if (cpumask_weight(&avail_cpus) == 1) { --cpu_isolation_vote[cpu]; ret_code = -EINVAL; goto out; } /* * There is a race between watchdog being enabled by hotplug and * core isolation disabling the watchdog. When a CPU is hotplugged in Loading