]> git.baikalelectronics.ru Git - kernel.git/commit
sched/deadline: Fix up the smp-affinity mask tests
authorPeter Zijlstra <peterz@infradead.org>
Tue, 17 Dec 2013 09:03:34 +0000 (10:03 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 13 Jan 2014 12:47:22 +0000 (13:47 +0100)
commit7d8a1243ff1f4758d53dbfa03188caad4fc9cdb4
treecbd2a6a1854ac563782884457a182b39bd0bd17e
parent30129d4d3d018e5543bf6bf3d2c479faa89c705d
sched/deadline: Fix up the smp-affinity mask tests

For now deadline tasks are not allowed to set smp affinity; however
the current tests are wrong, cure this.

The test in __sched_setscheduler() also uses an on-stack cpumask_t
which is a no-no.

Change both tests to use cpumask_subset() such that we test the root
domain span to be a subset of the cpus_allowed mask. This way we're
sure the tasks can always run on all CPUs they can be balanced over,
and have no effective affinity constraints.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-fyqtb1lapxca3lhsxv9cumdc@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c