From: Rusty Russell Date: Mon, 24 Nov 2008 16:05:11 +0000 (+1030) Subject: sched: convert sys_sched_getaffinity() to cpumask_var_t. X-Git-Tag: v2.6.29-rc1~538^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f17c860760927c2a8e41a021eab3317e4415e962;p=pandora-kernel.git sched: convert sys_sched_getaffinity() to cpumask_var_t. Impact: stack usage reduction Dynamically allocating cpumasks (when CONFIG_CPUMASK_OFFSTACK) saves space in the stack. cpumask_var_t is just a struct cpumask for !CONFIG_CPUMASK_OFFSTACK. Some jiggling here to make sure we always exit at the bottom (so we hit the free_cpumask_var there). Signed-off-by: Rusty Russell Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed