generic: reduce stack pressure in sched_affinity
authorMike Travis <travis@sgi.com>
Sat, 5 Apr 2008 01:11:08 +0000 (18:11 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:44:59 +0000 (19:44 +0200)
commitb53e921ba1cff8453dc9a87a84052fa12d5b30bd
tree021cadb6c58543ecccd95b55fc319f249ebf176e
parentf9a86fcbbb1e5542eabf45c9144ac4b6330861a4
generic: reduce stack pressure in sched_affinity

  * Modify sched_affinity functions to pass cpumask_t variables by reference
    instead of by value.

  * Use new set_cpus_allowed_ptr function.

Depends on:
[sched-devel]: sched: add new set_cpus_allowed_ptr function

Cc: Paul Jackson <pj@sgi.com>
Cc: Cliff Wickman <cpw@sgi.com>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mcheck/mce_amd_64.c
include/linux/sched.h
kernel/compat.c
kernel/rcupreempt.c
kernel/sched.c