summaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-03-26 22:23:49 +0100
committerIngo Molnar <mingo@elte.hu>2008-04-19 19:44:59 +0200
commitcd8ba7cd9be0192348c2836cb6645d9b2cd2bfd2 (patch)
tree3b4138c7b683c2168ac13be41aab74b49a6bcf1c /kernel/sched_fair.c
parentinit: move setup of nr_cpu_ids to as early as possible (diff)
downloadlinux-cd8ba7cd9be0192348c2836cb6645d9b2cd2bfd2.tar.xz
linux-cd8ba7cd9be0192348c2836cb6645d9b2cd2bfd2.zip
sched: add new set_cpus_allowed_ptr function
Add a new function that accepts a pointer to the "newly allowed cpus" cpumask argument. int set_cpus_allowed_ptr(struct task_struct *p, const cpumask_t *new_mask) The current set_cpus_allowed() function is modified to use the above but this does not result in an ABI change. And with some compiler optimization help, it may not introduce any additional overhead. Additionally, to enforce the read only nature of the new_mask arg, the "const" property is migrated to sub-functions called by set_cpus_allowed. This silences compiler warnings. Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions