From: Rusty Russell Date: Mon, 24 Nov 2008 16:05:11 +0000 (+1030) Subject: sched: convert struct (sys_)sched_setaffinity() to cpumask_var_t. X-Git-Tag: v2.6.29-rc1~538^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a16f3d30ca4e3f166d691220c003066a14e32b5;p=pandora-kernel.git sched: convert struct (sys_)sched_setaffinity() to cpumask_var_t. Impact: stack usage reduction Dynamically allocating cpumasks (when CONFIG_CPUMASK_OFFSTACK) saves space on the stack. cpumask_var_t is just a struct cpumask for !CONFIG_CPUMASK_OFFSTACK. Note the removal of the initializer of new_mask: since the first thing we did was "cpus_and(new_mask, new_mask, cpus_allowed)" I just changed that to "cpumask_and(new_mask, in_mask, cpus_allowed);". Signed-off-by: Rusty Russell Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed