diff --git a/init/Makefile b/init/Makefile index ef2d14caac68..2e202711e859 100644 --- a/init/Makefile +++ b/init/Makefile @@ -32,6 +32,5 @@ include/generated/compile.h: FORCE @$($(quiet)chk_compile.h) $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" \ - "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" \ "$(CONFIG_PREEMPT_RT_FULL)" "$(CC) $(KBUILD_CFLAGS)" \ "$(LD)" diff --git a/init/init_task.c b/init/init_task.c index 1576eb9f9623..df57433e5a61 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -85,7 +85,6 @@ struct task_struct init_task defined(CONFIG_SCHED_DEBUG) .pinned_on_cpu = -1, #endif - .cpus_requested = CPU_MASK_ALL, .mm = NULL, .active_mm = &init_mm, .restart_block = { diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 0f2098419d35..cbce76d19b27 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2800,7 +2800,7 @@ EXPORT_SYMBOL(wake_up_process); */ int wake_up_lock_sleeper(struct task_struct *p) { - return try_to_wake_up(p, TASK_UNINTERRUPTIBLE, WF_LOCK_SLEEPER); + return try_to_wake_up(p, TASK_UNINTERRUPTIBLE, WF_LOCK_SLEEPER, 1); } int wake_up_state(struct task_struct *p, unsigned int state) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 3cb81951fa48..29ccb7a039af 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6703,7 +6703,7 @@ static void find_best_target(struct sched_domain *sd, cpumask_t *cpus, /* Scan CPUs in all SDs */ sg = sd->groups; do { - for_each_cpu_and(i, &p->cpus_allowed, sched_group_span(sg)) { + for_each_cpu_and(i, p->cpus_ptr, sched_group_span(sg)) { unsigned long capacity_curr = capacity_curr_of(i); unsigned long capacity_orig = capacity_orig_of(i); unsigned long wake_util, new_util; @@ -7121,7 +7121,7 @@ static void select_cpu_candidates(struct sched_domain *sd, cpumask_t *cpus, max_spare_cap = 0; for_each_cpu_and(cpu, perf_domain_span(pd), sched_domain_span(sd)) { - if (!cpumask_test_cpu(cpu, &p->cpus_allowed)) + if (!cpumask_test_cpu(cpu, p->cpus_ptr)) continue; util = cpu_util_next(cpu, p, cpu); @@ -7239,7 +7239,7 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu, int sy if (sysctl_sched_sync_hint_enable && sync) { cpu = smp_processor_id(); - if (cpumask_test_cpu(cpu, &p->cpus_allowed)) + if (cpumask_test_cpu(cpu, p->cpus_ptr)) return cpu; } @@ -7284,7 +7284,7 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu, int sy goto unlock; } - if (cpumask_test_cpu(prev_cpu, &p->cpus_allowed)) + if (cpumask_test_cpu(prev_cpu, p->cpus_ptr)) prev_energy = best_energy = compute_energy(p, prev_cpu, pd); else prev_energy = best_energy = ULONG_MAX;