]> Pileus Git - ~andy/linux/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)
commite4099a5e929435cd6349343f002583f29868c900
treecbd2a6a1854ac563782884457a182b39bd0bd17e
parent6bfd6d72f51c51177676f2b1ba113fe0a85fdae4
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