diff options
author | Mike Travis <travis@sgi.com> | 2008-04-04 21:11:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:44:59 -0400 |
commit | b53e921ba1cff8453dc9a87a84052fa12d5b30bd (patch) | |
tree | 021cadb6c58543ecccd95b55fc319f249ebf176e /include | |
parent | f9a86fcbbb1e5542eabf45c9144ac4b6330861a4 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index be5d31752dbd..383502dfda17 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2034,7 +2034,7 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm) | |||
2034 | } | 2034 | } |
2035 | #endif | 2035 | #endif |
2036 | 2036 | ||
2037 | extern long sched_setaffinity(pid_t pid, cpumask_t new_mask); | 2037 | extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask); |
2038 | extern long sched_getaffinity(pid_t pid, cpumask_t *mask); | 2038 | extern long sched_getaffinity(pid_t pid, cpumask_t *mask); |
2039 | 2039 | ||
2040 | extern int sched_mc_power_savings, sched_smt_power_savings; | 2040 | extern int sched_mc_power_savings, sched_smt_power_savings; |